#[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
LengthDataCapacity = 4
CapacityLengthData = 5
LengthCapacityData = 6
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 copy 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.