pub enum Value {
}
Expand description
Recursive enum that can define any BinProt serializable type
Variants
Unit
Unit type
Nat0(u32)
Variable length natural integer
Bool(bool)
Boolean
String(Vec<u8>)
String
Char(u8)
Char
Int(i64)
Variable length integer
Float(f64)
Float
Option(Option<Box<Value>>)
Option
Record(Vec<(String, Value)>)
records/structs
Tuple(Vec<Value>)
Tuples (fixed length list)
Sum
Sum/enum types
Polyvar
Polymorphic Variant (Polyvar) types
List(Vec<Value>)
List of types (variable length)
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
sourcefn deserialize<D>(deserializer: D) -> Result<Value, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Value, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more