Enum sauron::prelude::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(bool)
bool value
Str(&'static str)
&’static str value
String(String)
String value
a vec of values
U8(u8)
u8 value
U16(u16)
u16 value
U32(u32)
u32 value
U64(u64)
u64 value
Usize(usize)
usize value
U128(u128)
u128 value
I8(i8)
i8 value
I16(i16)
i16 value
I32(i32)
i32 value
I64(i64)
i64 value
I128(i128)
i128 value
Isize(isize)
isize value
F32(f32)
f32 value
F64(f64)
f64 value
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