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
schema_i8
schema_u8
schema_i16
schema_u16
schema_i32
schema_u32
schema_i64
schema_u64
schema_string
schema_f32
schema_f64
schema_bool
Trait Implementations
impl Copy for SchemaPrimitive
[src]
impl Copy for SchemaPrimitive
impl Clone for SchemaPrimitive
[src]
impl Clone for SchemaPrimitive
fn clone(&self) -> SchemaPrimitive
[src]
fn clone(&self) -> SchemaPrimitive
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for SchemaPrimitive
[src]
impl Debug for SchemaPrimitive
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 SchemaPrimitive
[src]
impl PartialEq for SchemaPrimitive
fn eq(&self, other: &SchemaPrimitive) -> bool
[src]
fn eq(&self, other: &SchemaPrimitive) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl WithSchema for SchemaPrimitive
[src]
impl WithSchema for SchemaPrimitive
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 SchemaPrimitive
[src]
impl Serialize for SchemaPrimitive
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 SchemaPrimitive
[src]
impl Deserialize for SchemaPrimitive
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 SchemaPrimitive
impl Send for SchemaPrimitive
impl Sync for SchemaPrimitive
impl Sync for SchemaPrimitive