Enum serde_v8::SerializablePkg[][src]

pub enum SerializablePkg {
    Primitive(Primitive),
    Serializable(Box<dyn Serializable>),
}
Expand description

SerializablePkg exists to provide a fast path for op returns, allowing them to avoid boxing primtives (ints/floats/bool/unit/…)

Variants

Primitive

Tuple Fields of Primitive

0: Primitive
Serializable

Tuple Fields of Serializable

0: Box<dyn Serializable>

Implementations

Trait Implementations

Performs the conversion.

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.