Enum savefile::SchemaPrimitive[][src]

pub enum SchemaPrimitive {
Show 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,
}
Expand description

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

i8

schema_u8

u8

schema_i16

i16

schema_u16

u16

schema_i32

i32

schema_u32

u32

schema_i64

i64

schema_u64

u64

schema_string

string

schema_f32

f32

schema_f64

f64

schema_bool

bool

schema_canary1

canary

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

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

This method tests for !=.

Serialize self into the given serializer.

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

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.