Enum miniserde::ser::Fragment[][src]

pub enum Fragment<'a> {
    Null,
    Bool(bool),
    Str(Cow<'a, str>),
    U64(u64),
    I64(i64),
    F64(f64),
    Seq(Box<dyn Seq + 'a>),
    Map(Box<dyn Map + 'a>),
}
Expand description

One unit of output produced during serialization.

[Refer to the module documentation for examples.][::ser]

Variants

Null
Bool(bool)

Tuple Fields of Bool

0: bool
Str(Cow<'a, str>)

Tuple Fields of Str

0: Cow<'a, str>
U64(u64)

Tuple Fields of U64

0: u64
I64(i64)

Tuple Fields of I64

0: i64
F64(f64)

Tuple Fields of F64

0: f64
Seq(Box<dyn Seq + 'a>)

Tuple Fields of Seq

0: Box<dyn Seq + 'a>
Map(Box<dyn Map + 'a>)

Tuple Fields of Map

0: Box<dyn Map + 'a>

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.