[][src]Enum savefile::SchemaPrimitive

pub enum SchemaPrimitive {
    schema_i8,
    schema_u8,
    schema_i16,
    schema_u16,
    schema_i32,
    schema_u32,
    schema_i64,
    schema_u64,
    schema_string,
    schema_f32,
    schema_f64,
    schema_bool,
    schema_canary1,
}

A primitive is serialized as the little endian representation of its type, except for string, which is serialized as an usize length followed by the string in utf8.

Variants

schema_i8
schema_u8
schema_i16
schema_u16
schema_i32
schema_u32
schema_i64
schema_u64
schema_string
schema_f32
schema_f64
schema_bool
schema_canary1

Trait Implementations

impl WithSchema for SchemaPrimitive[src]

impl Serialize for SchemaPrimitive[src]

impl Deserialize for SchemaPrimitive[src]

impl Clone for SchemaPrimitive[src]

impl PartialEq<SchemaPrimitive> for SchemaPrimitive[src]

impl Copy for SchemaPrimitive[src]

impl Debug for SchemaPrimitive[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T