pub struct VarTuple<A, B> {
pub sized: A,
pub variable: B,
}
Expand description
A sized type that can be converted to a VarTupleULE
.
See the module for examples.
Fields§
§sized: A
§variable: B
Trait Implementations§
source§impl<'de, A, B> Deserialize<'de> for VarTuple<A, B>where
A: Deserialize<'de>,
B: Deserialize<'de>,
impl<'de, A, B> Deserialize<'de> for VarTuple<A, B>where
A: Deserialize<'de>,
B: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<A, B, V> EncodeAsVarULE<VarTupleULE<A, V>> for VarTuple<A, B>
impl<A, B, V> EncodeAsVarULE<VarTupleULE<A, V>> for VarTuple<A, B>
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, B: Ord> Ord for VarTuple<A, B>
impl<A: Ord, B: Ord> Ord for VarTuple<A, B>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<A: PartialOrd, B: PartialOrd> PartialOrd for VarTuple<A, B>
impl<A: PartialOrd, B: PartialOrd> PartialOrd for VarTuple<A, B>
source§impl<'a, A, B, V> ZeroFrom<'a, VarTupleULE<A, V>> for VarTuple<A, B>
impl<'a, A, B, V> ZeroFrom<'a, VarTupleULE<A, V>> for VarTuple<A, B>
source§fn zero_from(other: &'a VarTupleULE<A, V>) -> Self
fn zero_from(other: &'a VarTupleULE<A, V>) -> Self
Clone the other
C
into a struct that may retain references into C
.impl<A: Eq, B: Eq> Eq for VarTuple<A, B>
impl<A, B> StructuralPartialEq for VarTuple<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for VarTuple<A, B>
impl<A, B> RefUnwindSafe for VarTuple<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for VarTuple<A, B>
impl<A, B> Sync for VarTuple<A, B>
impl<A, B> Unpin for VarTuple<A, B>
impl<A, B> UnwindSafe for VarTuple<A, B>where
A: UnwindSafe,
B: 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> 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
)