Enum sauron_core::html::attributes::Value [−][src]
pub enum Value { }
Expand description
TODO: merge this with AttributeValue Value is an abstraction of the values used in the actual backend. Html and gtk-rs have different set of compatible values therefore a need for a storage of these intermediate value is needed
Variants
bool value
Tuple Fields of Bool
0: bool
&’static str value
Tuple Fields of Str
0: &'static str
String value
Tuple Fields of String
0: String
a vec of values
u8 value
Tuple Fields of U8
0: u8
u16 value
Tuple Fields of U16
0: u16
u32 value
Tuple Fields of U32
0: u32
u64 value
Tuple Fields of U64
0: u64
usize value
Tuple Fields of Usize
0: usize
u128 value
Tuple Fields of U128
0: u128
i8 value
Tuple Fields of I8
0: i8
i16 value
Tuple Fields of I16
0: i16
i32 value
Tuple Fields of I32
0: i32
i64 value
Tuple Fields of I64
0: i64
i128 value
Tuple Fields of I128
0: i128
isize value
Tuple Fields of Isize
0: isize
f32 value
Tuple Fields of F32
0: f32
f64 value
Tuple Fields of F64
0: f64
bytes value
Implementations
returns an &str reference if this value is Str
or String
variant
Note: This doesn’t convert other variant into str representation
Use the to_string()
for that.
returns the reference to the bytes if this is a Bytes
variant
converts to f64 if the variants are numerical representation
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more