#[repr(u8)]pub enum VecOrStringLayout {
Unknown = 0,
DataCapacityLength = 1,
DataLengthCapacity = 2,
CapacityDataLength = 3,
LengthDataCapacity = 4,
CapacityLengthData = 5,
LengthCapacityData = 6,
LengthData = 7,
DataLength = 8,
}Expand description
The actual layout in memory of a Vec-like datastructure. If this is ‘Unknown’, the memory format is unspecified. Otherwise, it is as given by the variant.
Variants§
Unknown = 0
Nothing is known. We must assume that the memory layout could be anything
DataCapacityLength = 1
Data pointer, plus capacity and length usize
DataLengthCapacity = 2
Data pointer, plus length and capacity usize
CapacityDataLength = 3
One of the possible vec layouts, capacity-data-length
LengthDataCapacity = 4
One of the possible vec layouts, length-data-capacity
CapacityLengthData = 5
One of the possible vec layouts, capacity-length-data
LengthCapacityData = 6
One of the possible vec layouts, length-capacity-data
LengthData = 7
Length, then data
DataLength = 8
Data, then length
Trait Implementations§
Source§impl Clone for VecOrStringLayout
impl Clone for VecOrStringLayout
Source§fn clone(&self) -> VecOrStringLayout
fn clone(&self) -> VecOrStringLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VecOrStringLayout
impl Debug for VecOrStringLayout
Source§impl Default for VecOrStringLayout
impl Default for VecOrStringLayout
Source§fn default() -> VecOrStringLayout
fn default() -> VecOrStringLayout
Returns the “default value” for a type. Read more
Source§impl Deserialize for VecOrStringLayout
impl Deserialize for VecOrStringLayout
Source§fn deserialize(
deserializer: &mut Deserializer<'_, impl Read>,
) -> Result<Self, SavefileError>
fn deserialize( deserializer: &mut Deserializer<'_, impl Read>, ) -> Result<Self, SavefileError>
Deserialize and return an instance of Self from the given deserializer.
Source§impl PartialEq for VecOrStringLayout
impl PartialEq for VecOrStringLayout
Source§impl WithSchema for VecOrStringLayout
impl WithSchema for VecOrStringLayout
impl Copy for VecOrStringLayout
impl Eq for VecOrStringLayout
impl StructuralPartialEq for VecOrStringLayout
Auto Trait Implementations§
impl Freeze for VecOrStringLayout
impl RefUnwindSafe for VecOrStringLayout
impl Send for VecOrStringLayout
impl Sync for VecOrStringLayout
impl Unpin for VecOrStringLayout
impl UnwindSafe for VecOrStringLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.