Struct zerovec::ule::tuplevar::Tuple4VarULE
source · pub struct Tuple4VarULE<A: ?Sized, B: ?Sized, C: ?Sized, D: ?Sized, Format: VarZeroVecFormat = Index16> { /* private fields */ }
Expand description
VarULE type for tuples with 4 elements. See module docs for more information
Implementations§
Trait Implementations§
source§impl<A: Debug + VarULE + ?Sized, B: Debug + VarULE + ?Sized, C: Debug + VarULE + ?Sized, D: Debug + VarULE + ?Sized, Format: VarZeroVecFormat> Debug for Tuple4VarULE<A, B, C, D, Format>
impl<A: Debug + VarULE + ?Sized, B: Debug + VarULE + ?Sized, C: Debug + VarULE + ?Sized, D: Debug + VarULE + ?Sized, Format: VarZeroVecFormat> Debug for Tuple4VarULE<A, B, C, D, Format>
source§impl<'a, 'de: 'a, A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, Format: VarZeroVecFormat> Deserialize<'de> for &'a Tuple4VarULE<A, B, C, D, Format>
impl<'a, 'de: 'a, A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, Format: VarZeroVecFormat> Deserialize<'de> for &'a Tuple4VarULE<A, B, C, D, Format>
source§fn deserialize<Des>(deserializer: Des) -> Result<Self, Des::Error>where
Des: Deserializer<'de>,
fn deserialize<Des>(deserializer: Des) -> Result<Self, Des::Error>where
Des: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'de, A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, Format> Deserialize<'de> for Box<Tuple4VarULE<A, B, C, D, Format>>where
Box<A>: Deserialize<'de>,
Box<B>: Deserialize<'de>,
Box<C>: Deserialize<'de>,
Box<D>: Deserialize<'de>,
Format: VarZeroVecFormat,
impl<'de, A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, Format> Deserialize<'de> for Box<Tuple4VarULE<A, B, C, D, Format>>where
Box<A>: Deserialize<'de>,
Box<B>: Deserialize<'de>,
Box<C>: Deserialize<'de>,
Box<D>: Deserialize<'de>,
Format: VarZeroVecFormat,
source§fn deserialize<Des>(deserializer: Des) -> Result<Self, Des::Error>where
Des: Deserializer<'de>,
fn deserialize<Des>(deserializer: Des) -> Result<Self, Des::Error>where
Des: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<A, B, C, D, AE, BE, CE, DE, Format> EncodeAsVarULE<Tuple4VarULE<A, B, C, D, Format>> for (AE, BE, CE, DE)where
A: VarULE + ?Sized,
B: VarULE + ?Sized,
C: VarULE + ?Sized,
D: VarULE + ?Sized,
AE: EncodeAsVarULE<A>,
BE: EncodeAsVarULE<B>,
CE: EncodeAsVarULE<C>,
DE: EncodeAsVarULE<D>,
Format: VarZeroVecFormat,
impl<A, B, C, D, AE, BE, CE, DE, Format> EncodeAsVarULE<Tuple4VarULE<A, B, C, D, Format>> for (AE, BE, CE, DE)where
A: VarULE + ?Sized,
B: VarULE + ?Sized,
C: VarULE + ?Sized,
D: VarULE + ?Sized,
AE: EncodeAsVarULE<A>,
BE: EncodeAsVarULE<B>,
CE: EncodeAsVarULE<C>,
DE: EncodeAsVarULE<D>,
Format: VarZeroVecFormat,
source§fn encode_var_ule_as_slices<R>(&self, _: impl FnOnce(&[&[u8]]) -> R) -> R
fn encode_var_ule_as_slices<R>(&self, _: impl FnOnce(&[&[u8]]) -> R) -> R
Calls
cb
with a piecewise list of byte slices that when concatenated
produce the memory pattern of the corresponding instance of T
. Read moresource§fn encode_var_ule_len(&self) -> usize
fn encode_var_ule_len(&self) -> usize
Return the length, in bytes, of the corresponding
VarULE
typesource§fn encode_var_ule_write(&self, dst: &mut [u8])
fn encode_var_ule_write(&self, dst: &mut [u8])
Write the corresponding
VarULE
type to the dst
buffer. dst
should
be the size of Self::encode_var_ule_len()
source§impl<A: Ord + VarULE + ?Sized, B: Ord + VarULE + ?Sized, C: Ord + VarULE + ?Sized, D: Ord + VarULE + ?Sized, Format: VarZeroVecFormat> Ord for Tuple4VarULE<A, B, C, D, Format>
impl<A: Ord + VarULE + ?Sized, B: Ord + VarULE + ?Sized, C: Ord + VarULE + ?Sized, D: Ord + VarULE + ?Sized, Format: VarZeroVecFormat> Ord for Tuple4VarULE<A, B, C, D, Format>
source§impl<A: PartialEq + VarULE + ?Sized, B: PartialEq + VarULE + ?Sized, C: PartialEq + VarULE + ?Sized, D: PartialEq + VarULE + ?Sized, Format: VarZeroVecFormat> PartialEq for Tuple4VarULE<A, B, C, D, Format>
impl<A: PartialEq + VarULE + ?Sized, B: PartialEq + VarULE + ?Sized, C: PartialEq + VarULE + ?Sized, D: PartialEq + VarULE + ?Sized, Format: VarZeroVecFormat> PartialEq for Tuple4VarULE<A, B, C, D, Format>
source§impl<A: PartialOrd + VarULE + ?Sized, B: PartialOrd + VarULE + ?Sized, C: PartialOrd + VarULE + ?Sized, D: PartialOrd + VarULE + ?Sized, Format: VarZeroVecFormat> PartialOrd for Tuple4VarULE<A, B, C, D, Format>
impl<A: PartialOrd + VarULE + ?Sized, B: PartialOrd + VarULE + ?Sized, C: PartialOrd + VarULE + ?Sized, D: PartialOrd + VarULE + ?Sized, Format: VarZeroVecFormat> PartialOrd for Tuple4VarULE<A, B, C, D, Format>
source§impl<A, B, C, D, Format> Serialize for Tuple4VarULE<A, B, C, D, Format>
impl<A, B, C, D, Format> Serialize for Tuple4VarULE<A, B, C, D, Format>
source§impl<A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, Format: VarZeroVecFormat> ToOwned for Tuple4VarULE<A, B, C, D, Format>
impl<A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, Format: VarZeroVecFormat> ToOwned for Tuple4VarULE<A, B, C, D, Format>
source§type Owned = Box<Tuple4VarULE<A, B, C, D, Format>>
type Owned = Box<Tuple4VarULE<A, B, C, D, Format>>
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
source§impl<A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, Format: VarZeroVecFormat> VarULE for Tuple4VarULE<A, B, C, D, Format>
impl<A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, Format: VarZeroVecFormat> VarULE for Tuple4VarULE<A, B, C, D, Format>
source§fn validate_byte_slice(bytes: &[u8]) -> Result<(), UleError>
fn validate_byte_slice(bytes: &[u8]) -> Result<(), UleError>
Validates a byte slice,
&[u8]
. Read moresource§unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &Self
unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &Self
Takes a byte slice,
&[u8]
, and return it as &Self
with the same lifetime, assuming
that this byte slice has previously been run through Self::parse_byte_slice()
with
success. Read moresource§fn as_byte_slice(&self) -> &[u8] ⓘ
fn as_byte_slice(&self) -> &[u8] ⓘ
source§impl<'a, A, B, C, D, AE, BE, CE, DE, Format> ZeroFrom<'a, Tuple4VarULE<A, B, C, D, Format>> for (AE, BE, CE, DE)
impl<'a, A, B, C, D, AE, BE, CE, DE, Format> ZeroFrom<'a, Tuple4VarULE<A, B, C, D, Format>> for (AE, BE, CE, DE)
source§fn zero_from(other: &'a Tuple4VarULE<A, B, C, D, Format>) -> Self
fn zero_from(other: &'a Tuple4VarULE<A, B, C, D, Format>) -> Self
Clone the other
C
into a struct that may retain references into C
.impl<A: Eq + VarULE + ?Sized, B: Eq + VarULE + ?Sized, C: Eq + VarULE + ?Sized, D: Eq + VarULE + ?Sized, Format: VarZeroVecFormat> Eq for Tuple4VarULE<A, B, C, D, Format>
Auto Trait Implementations§
impl<A, B, C, D, Format> Freeze for Tuple4VarULE<A, B, C, D, Format>
impl<A, B, C, D, Format> RefUnwindSafe for Tuple4VarULE<A, B, C, D, Format>where
A: RefUnwindSafe + ?Sized,
B: RefUnwindSafe + ?Sized,
C: RefUnwindSafe + ?Sized,
D: RefUnwindSafe + ?Sized,
Format: RefUnwindSafe,
impl<A, B, C, D, Format> Send for Tuple4VarULE<A, B, C, D, Format>
impl<A, B, C, D, Format = Index16> !Sized for Tuple4VarULE<A, B, C, D, Format>
impl<A, B, C, D, Format> Sync for Tuple4VarULE<A, B, C, D, Format>
impl<A, B, C, D, Format> Unpin for Tuple4VarULE<A, B, C, D, Format>
impl<A, B, C, D, Format> UnwindSafe for Tuple4VarULE<A, B, C, D, Format>where
A: UnwindSafe + ?Sized,
B: UnwindSafe + ?Sized,
C: UnwindSafe + ?Sized,
D: UnwindSafe + ?Sized,
Format: UnwindSafe,
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> EncodeAsVarULE<T> for T
impl<T> EncodeAsVarULE<T> for T
source§fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
Calls
cb
with a piecewise list of byte slices that when concatenated
produce the memory pattern of the corresponding instance of T
. Read moresource§fn encode_var_ule_len(&self) -> usize
fn encode_var_ule_len(&self) -> usize
Return the length, in bytes, of the corresponding
VarULE
typesource§fn encode_var_ule_write(&self, dst: &mut [u8])
fn encode_var_ule_write(&self, dst: &mut [u8])
Write the corresponding
VarULE
type to the dst
buffer. dst
should
be the size of Self::encode_var_ule_len()