Enum serde_reflection::Format [−][src]
pub enum Format {}Show 24 variants
Variable(Variable<Format>), TypeName(String), Unit, Bool, I8, I16, I32, I64, I128, U8, U16, U32, U64, U128, F32, F64, Char, Str, Bytes, Option(Box<Format>), Seq(Box<Format>), Map { key: Box<Format>, value: Box<Format>, }, Tuple(Vec<Format>), TupleArray { content: Box<Format>, size: usize, },
Expand description
Serde-based serialization format for anonymous “value” types.
Variants
A format whose value is initially unknown. Used internally for tracing. Not (de)serializable.
TypeName(String)
The name of a container.
The format of Option<T>
.
A sequence, e.g. the format of Vec<Foo>
.
A map, e.g. the format of BTreeMap<K, V>
.
A tuple, e.g. the format of (Foo, Bar)
.
Alias for (Foo, ... Foo)
.
E.g. the format of [Foo; N]
.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Unify the newly “traced” value format
into the current format.
Note that there should be no TupleArray
s at this point.
Visit all the formats in self
in a depth-first way.
Variables are not supported and will cause an error. Read more
Mutably visit all the formats in self
in a depth-first way. Read more
Whether this format is a variable with no known value yet.
Finalize the formats within self
by removing variables and making sure
that all eligible tuples are compressed into a TupleArray
. Return an error
if any variable has an unknown value. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Format
impl !UnwindSafe for Format
Blanket Implementations
Mutably borrows from an owned value. Read more