pub enum Format {
Show 27 variants
Incomplete {
debug: String,
},
TypeName {
ident: String,
generics: Vec<Format>,
},
Unit,
Bool,
I8,
I16,
I32,
I64,
I128,
ISIZE,
U8,
U16,
U32,
U64,
U128,
USIZE,
F32,
F64,
Char,
Str,
Bytes,
Option(Box<Format>),
Never,
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. This is just the path respecting serde names into the container It gets replaced by the knowledge
Variants§
Incomplete
TypeName
The name of a container.
Unit
Bool
I8
I16
I32
I64
I128
ISIZE
U8
U16
U32
U64
U128
USIZE
F32
F64
Char
Str
Bytes
Option(Box<Format>)
The format of Option<T>
.
Never
Never actually instantiated
Seq(Box<Format>)
A sequence, e.g. the format of Vec<Foo>
.
Map
A map, e.g. the format of BTreeMap<K, V>
.
Tuple(Vec<Format>)
A tuple, e.g. the format of (Foo, Bar)
.
TupleArray
Alias for (Foo, ... Foo)
.
E.g. the format of [Foo; N]
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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