Struct savefile::SchemaArray
source · 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§
source§impl Debug for SchemaArray
impl Debug for SchemaArray
source§impl Deserialize for SchemaArray
impl Deserialize for SchemaArray
source§fn deserialize(
deserializer: &mut Deserializer<'_>
) -> Result<Self, SavefileError>
fn deserialize( deserializer: &mut Deserializer<'_> ) -> Result<Self, SavefileError>
Deserialize and return an instance of Self from the given deserializer.
source§impl PartialEq<SchemaArray> for SchemaArray
impl PartialEq<SchemaArray> for SchemaArray
source§fn eq(&self, other: &SchemaArray) -> bool
fn eq(&self, other: &SchemaArray) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SchemaArray
impl Serialize for SchemaArray
source§fn serialize(
&self,
serializer: &mut Serializer<'_>
) -> Result<(), SavefileError>
fn serialize( &self, serializer: &mut Serializer<'_> ) -> Result<(), SavefileError>
Serialize self into the given serializer.
source§impl WithSchema for SchemaArray
impl WithSchema for SchemaArray
impl StructuralPartialEq for SchemaArray
Auto Trait Implementations§
impl RefUnwindSafe for SchemaArray
impl Send for SchemaArray
impl Sync for SchemaArray
impl Unpin for SchemaArray
impl UnwindSafe for SchemaArray
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more