pub enum Nucleus<'de> {
    Boolean(bool),
    Integer(Integer),
    Float(Float),
    Bytes(Cow<'de, [u8]>),
    Unit,
    Named,
    DynamicMap,
    DynamicEnd,
}
Expand description

A value contained within an Atom.

Variants

Boolean(bool)

A boolean value.

Integer(Integer)

An integer value.

Float(Float)

A floating point value.

Bytes(Cow<'de, [u8]>)

A buffer of bytes.

Unit

A unit.

Named

A named value.

DynamicMap

A marker denoting a map with unknown length is next in the file.

DynamicEnd

A marker denoting the end of a map with unknown length.

Trait Implementations

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.