pub struct Tuple2VarULE<A: ?Sized, B: ?Sized, Format: VarZeroVecFormat = Index16> { /* private fields */ }
Expand description
VarULE type for tuples with 2 elements. See module docs for more information
Implementations§
Trait Implementations§
Source§impl<A: Debug + VarULE + ?Sized, B: Debug + VarULE + ?Sized, Format: VarZeroVecFormat> Debug for Tuple2VarULE<A, B, Format>
impl<A: Debug + VarULE + ?Sized, B: Debug + VarULE + ?Sized, Format: VarZeroVecFormat> Debug for Tuple2VarULE<A, B, Format>
Source§impl<A, B, AE, BE, Format> EncodeAsVarULE<Tuple2VarULE<A, B, Format>> for (AE, BE)where
A: VarULE + ?Sized,
B: VarULE + ?Sized,
AE: EncodeAsVarULE<A>,
BE: EncodeAsVarULE<B>,
Format: VarZeroVecFormat,
impl<A, B, AE, BE, Format> EncodeAsVarULE<Tuple2VarULE<A, B, Format>> for (AE, BE)where
A: VarULE + ?Sized,
B: VarULE + ?Sized,
AE: EncodeAsVarULE<A>,
BE: EncodeAsVarULE<B>,
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, Format: VarZeroVecFormat> Ord for Tuple2VarULE<A, B, Format>
impl<A: Ord + VarULE + ?Sized, B: Ord + VarULE + ?Sized, Format: VarZeroVecFormat> Ord for Tuple2VarULE<A, B, Format>
Source§impl<A: PartialEq + VarULE + ?Sized, B: PartialEq + VarULE + ?Sized, Format: VarZeroVecFormat> PartialEq for Tuple2VarULE<A, B, Format>
impl<A: PartialEq + VarULE + ?Sized, B: PartialEq + VarULE + ?Sized, Format: VarZeroVecFormat> PartialEq for Tuple2VarULE<A, B, Format>
Source§impl<A: PartialOrd + VarULE + ?Sized, B: PartialOrd + VarULE + ?Sized, Format: VarZeroVecFormat> PartialOrd for Tuple2VarULE<A, B, Format>
impl<A: PartialOrd + VarULE + ?Sized, B: PartialOrd + VarULE + ?Sized, Format: VarZeroVecFormat> PartialOrd for Tuple2VarULE<A, B, Format>
Source§impl<A: VarULE + ?Sized, B: VarULE + ?Sized, Format: VarZeroVecFormat> ToOwned for Tuple2VarULE<A, B, Format>
impl<A: VarULE + ?Sized, B: VarULE + ?Sized, Format: VarZeroVecFormat> ToOwned for Tuple2VarULE<A, B, Format>
Source§type Owned = Box<Tuple2VarULE<A, B, Format>>
type Owned = Box<Tuple2VarULE<A, B, 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, Format: VarZeroVecFormat> VarULE for Tuple2VarULE<A, B, Format>
impl<A: VarULE + ?Sized, B: VarULE + ?Sized, Format: VarZeroVecFormat> VarULE for Tuple2VarULE<A, B, Format>
Source§fn validate_bytes(bytes: &[u8]) -> Result<(), UleError>
fn validate_bytes(bytes: &[u8]) -> Result<(), UleError>
Validates a byte slice,
&[u8]
. Read moreSource§unsafe fn from_bytes_unchecked(bytes: &[u8]) -> &Self
unsafe fn from_bytes_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_bytes()
with
success. Read moreSource§impl<'a, A, B, AE, BE, Format> ZeroFrom<'a, Tuple2VarULE<A, B, Format>> for (AE, BE)
impl<'a, A, B, AE, BE, Format> ZeroFrom<'a, Tuple2VarULE<A, B, Format>> for (AE, BE)
Source§fn zero_from(other: &'a Tuple2VarULE<A, B, Format>) -> Self
fn zero_from(other: &'a Tuple2VarULE<A, B, Format>) -> Self
Clone the other
C
into a struct that may retain references into C
.impl<A: Eq + VarULE + ?Sized, B: Eq + VarULE + ?Sized, Format: VarZeroVecFormat> Eq for Tuple2VarULE<A, B, Format>
Auto Trait Implementations§
impl<A, B, Format> Freeze for Tuple2VarULE<A, B, Format>
impl<A, B, Format> RefUnwindSafe for Tuple2VarULE<A, B, Format>
impl<A, B, Format> Send for Tuple2VarULE<A, B, Format>
impl<A, B, Format = Index16> !Sized for Tuple2VarULE<A, B, Format>
impl<A, B, Format> Sync for Tuple2VarULE<A, B, Format>
impl<A, B, Format> Unpin for Tuple2VarULE<A, B, Format>
impl<A, B, Format> UnwindSafe for Tuple2VarULE<A, B, Format>
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()
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: (unsized)