Struct savefile::SchemaStruct [−][src]
A struct is by serializing its fields one by one, without any padding. The dbg_name is just for diagnostics.
Fields
dbg_name: String
fields: Vec<Field>
Trait Implementations
impl Debug for SchemaStruct
[src]
impl Debug for SchemaStruct
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for SchemaStruct
[src]
impl PartialEq for SchemaStruct
fn eq(&self, other: &SchemaStruct) -> bool
[src]
fn eq(&self, other: &SchemaStruct) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SchemaStruct) -> bool
[src]
fn ne(&self, other: &SchemaStruct) -> bool
This method tests for !=
.
impl WithSchema for SchemaStruct
[src]
impl WithSchema for SchemaStruct
fn schema(_version: u32) -> Schema
[src]
fn schema(_version: u32) -> Schema
Returns a representation of the schema used by this Serialize implementation for the given version.
impl Serialize for SchemaStruct
[src]
impl Serialize for SchemaStruct
fn serialize(&self, serializer: &mut Serializer) -> Result<(), SavefileError>
[src]
fn serialize(&self, serializer: &mut Serializer) -> Result<(), SavefileError>
Serialize self into the given serializer.
impl Deserialize for SchemaStruct
[src]
impl Deserialize for SchemaStruct
fn deserialize(deserializer: &mut Deserializer) -> Result<Self, SavefileError>
[src]
fn deserialize(deserializer: &mut Deserializer) -> Result<Self, SavefileError>
Deserialize and return an instance of Self from the given deserializer.
Auto Trait Implementations
impl Send for SchemaStruct
impl Send for SchemaStruct
impl Sync for SchemaStruct
impl Sync for SchemaStruct