pub enum Value {
}
Expand description
A typed pod value.
Variants§
None
no value or a NULL pointer.
Bool(bool)
a boolean value.
Id(Id)
an enumerated value.
Int(i32)
a 32 bits integer.
Long(i64)
a 64 bits integer.
Float(f32)
a 32 bits floating.
Double(f64)
a 64 bits floating.
String(String)
a string.
Bytes(Vec<u8>)
a byte array.
Rectangle(Rectangle)
a rectangle with width and height.
Fraction(Fraction)
a fraction with numerator and denominator.
Fd(Fd)
a file descriptor.
ValueArray(ValueArray)
an array of same type objects.
Struct(Vec<Value>)
a collection of types and objects.
Object(Object)
an object.
Choice(ChoiceValue)
a choice.
Pointer(u32, *const c_void)
a pointer.
Trait Implementations§
source§impl PartialEq for Value
impl PartialEq for Value
source§impl<'de> PodDeserialize<'de> for Value
impl<'de> PodDeserialize<'de> for Value
source§fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
Deserialize the type by using the provided
PodDeserializer
source§impl PodSerialize for Value
impl PodSerialize for Value
source§fn serialize<O: Write + Seek>(
&self,
serializer: PodSerializer<O>
) -> Result<SerializeSuccess<O>, GenError>
fn serialize<O: Write + Seek>( &self, serializer: PodSerializer<O> ) -> Result<SerializeSuccess<O>, GenError>
Serialize the type by using the provided
PodSerializer
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more