Struct savefile::SchemaArray[][src]

pub struct SchemaArray {
    pub item_type: Box<Schema>,
    pub count: usize,
}
Expand description

An array is serialized by serializing its items one by one, without any padding. The dbg_name is just for diagnostics.

Fields

item_type: Box<Schema>

Type of array elements

count: usize

Length of array

Trait Implementations

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 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.