Enum savefile::SchemaPrimitive[][src]

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,
}

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

Trait Implementations

impl Copy for SchemaPrimitive
[src]

impl Clone for SchemaPrimitive
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SchemaPrimitive
[src]

Formats the value using the given formatter. Read more

impl PartialEq for SchemaPrimitive
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl WithSchema for SchemaPrimitive
[src]

Returns a representation of the schema used by this Serialize implementation for the given version.

impl Serialize for SchemaPrimitive
[src]

Serialize self into the given serializer.

impl Deserialize for SchemaPrimitive
[src]

Deserialize and return an instance of Self from the given deserializer.

Auto Trait Implementations