pub trait ParsableValue: Copy {
    // Required method
    fn parse_value(value: &str) -> Option<Self>;
}
Expand description

Trait implemented on types which can be returned by DictRef::parse.

Required Methods§

source

fn parse_value(value: &str) -> Option<Self>

Try parsing value to convert it to the requested type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ParsableValue for bool

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl ParsableValue for f32

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl ParsableValue for f64

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl ParsableValue for i8

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl ParsableValue for i16

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl ParsableValue for i32

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl ParsableValue for i64

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl ParsableValue for i128

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl ParsableValue for isize

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl ParsableValue for u8

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl ParsableValue for u16

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl ParsableValue for u32

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl ParsableValue for u64

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl ParsableValue for u128

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl ParsableValue for usize

source§

fn parse_value(value: &str) -> Option<Self>

source§

impl<T> ParsableValue for *const T

source§

fn parse_value(value: &str) -> Option<Self>

Implementors§