Struct zerovec::ule::tuplevar::Tuple6VarULE

source ·
pub struct Tuple6VarULE<A: ?Sized, B: ?Sized, C: ?Sized, D: ?Sized, E: ?Sized, F: ?Sized, Format: VarZeroVecFormat = Index16> { /* private fields */ }
Expand description

VarULE type for tuples with 6 elements. See module docs for more information

Implementations§

source§

impl<A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, E: VarULE + ?Sized, F: VarULE + ?Sized, Format: VarZeroVecFormat> Tuple6VarULE<A, B, C, D, E, F, Format>

source

pub fn a(&self) -> &A

Get field 0of this tuple

source

pub fn b(&self) -> &B

Get field 1of this tuple

source

pub fn c(&self) -> &C

Get field 2of this tuple

source

pub fn d(&self) -> &D

Get field 3of this tuple

source

pub fn e(&self) -> &E

Get field 4of this tuple

source

pub fn f(&self) -> &F

Get field 5of this tuple

Trait Implementations§

source§

impl<A: Debug + VarULE + ?Sized, B: Debug + VarULE + ?Sized, C: Debug + VarULE + ?Sized, D: Debug + VarULE + ?Sized, E: Debug + VarULE + ?Sized, F: Debug + VarULE + ?Sized, Format: VarZeroVecFormat> Debug for Tuple6VarULE<A, B, C, D, E, F, Format>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, 'de: 'a, A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, E: VarULE + ?Sized, F: VarULE + ?Sized, Format: VarZeroVecFormat> Deserialize<'de> for &'a Tuple6VarULE<A, B, C, D, E, F, Format>

source§

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, E: VarULE + ?Sized, F: VarULE + ?Sized, Format> Deserialize<'de> for Box<Tuple6VarULE<A, B, C, D, E, F, Format>>
where Box<A>: Deserialize<'de>, Box<B>: Deserialize<'de>, Box<C>: Deserialize<'de>, Box<D>: Deserialize<'de>, Box<E>: Deserialize<'de>, Box<F>: Deserialize<'de>, Format: VarZeroVecFormat,

source§

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, E, F, AE, BE, CE, DE, EE, FE, Format> EncodeAsVarULE<Tuple6VarULE<A, B, C, D, E, F, Format>> for (AE, BE, CE, DE, EE, FE)
where A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, E: VarULE + ?Sized, F: VarULE + ?Sized, AE: EncodeAsVarULE<A>, BE: EncodeAsVarULE<B>, CE: EncodeAsVarULE<C>, DE: EncodeAsVarULE<D>, EE: EncodeAsVarULE<E>, FE: EncodeAsVarULE<F>, Format: VarZeroVecFormat,

source§

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 more
source§

fn encode_var_ule_len(&self) -> usize

Return the length, in bytes, of the corresponding VarULE type
source§

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, E: Ord + VarULE + ?Sized, F: Ord + VarULE + ?Sized, Format: VarZeroVecFormat> Ord for Tuple6VarULE<A, B, C, D, E, F, Format>

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
source§

impl<A: PartialEq + VarULE + ?Sized, B: PartialEq + VarULE + ?Sized, C: PartialEq + VarULE + ?Sized, D: PartialEq + VarULE + ?Sized, E: PartialEq + VarULE + ?Sized, F: PartialEq + VarULE + ?Sized, Format: VarZeroVecFormat> PartialEq for Tuple6VarULE<A, B, C, D, E, F, Format>

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<A: PartialOrd + VarULE + ?Sized, B: PartialOrd + VarULE + ?Sized, C: PartialOrd + VarULE + ?Sized, D: PartialOrd + VarULE + ?Sized, E: PartialOrd + VarULE + ?Sized, F: PartialOrd + VarULE + ?Sized, Format: VarZeroVecFormat> PartialOrd for Tuple6VarULE<A, B, C, D, E, F, Format>

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<A, B, C, D, E, F, Format> Serialize for Tuple6VarULE<A, B, C, D, E, F, Format>
where A: VarULE + ?Sized + Serialize, B: VarULE + ?Sized + Serialize, C: VarULE + ?Sized + Serialize, D: VarULE + ?Sized + Serialize, E: VarULE + ?Sized + Serialize, F: VarULE + ?Sized + Serialize, for<'a> &'a A: ZeroFrom<'a, A>, for<'a> &'a B: ZeroFrom<'a, B>, for<'a> &'a C: ZeroFrom<'a, C>, for<'a> &'a D: ZeroFrom<'a, D>, for<'a> &'a E: ZeroFrom<'a, E>, for<'a> &'a F: ZeroFrom<'a, F>, Format: VarZeroVecFormat,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, E: VarULE + ?Sized, F: VarULE + ?Sized, Format: VarZeroVecFormat> ToOwned for Tuple6VarULE<A, B, C, D, E, F, Format>

source§

type Owned = Box<Tuple6VarULE<A, B, C, D, E, F, Format>>

The resulting type after obtaining ownership.
source§

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)

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, E: VarULE + ?Sized, F: VarULE + ?Sized, Format: VarZeroVecFormat> VarULE for Tuple6VarULE<A, B, C, D, E, F, Format>

source§

fn validate_bytes(bytes: &[u8]) -> Result<(), UleError>

Validates a byte slice, &[u8]. Read more
source§

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 more
source§

fn parse_bytes(bytes: &[u8]) -> Result<&Self, UleError>

Parses a byte slice, &[u8], and return it as &Self with the same lifetime. Read more
source§

fn as_bytes(&self) -> &[u8]

Given &Self, returns a &[u8] with the same lifetime. Read more
source§

fn to_boxed(&self) -> Box<Self>

Allocate on the heap as a Box<T>
source§

impl<'a, A, B, C, D, E, F, AE, BE, CE, DE, EE, FE, Format> ZeroFrom<'a, Tuple6VarULE<A, B, C, D, E, F, Format>> for (AE, BE, CE, DE, EE, FE)
where A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, E: VarULE + ?Sized, F: VarULE + ?Sized, AE: ZeroFrom<'a, A>, BE: ZeroFrom<'a, B>, CE: ZeroFrom<'a, C>, DE: ZeroFrom<'a, D>, EE: ZeroFrom<'a, E>, FE: ZeroFrom<'a, F>, Format: VarZeroVecFormat,

source§

fn zero_from(other: &'a Tuple6VarULE<A, B, C, D, E, F, Format>) -> Self

Clone the other C into a struct that may retain references into C.
source§

impl<A: Eq + VarULE + ?Sized, B: Eq + VarULE + ?Sized, C: Eq + VarULE + ?Sized, D: Eq + VarULE + ?Sized, E: Eq + VarULE + ?Sized, F: Eq + VarULE + ?Sized, Format: VarZeroVecFormat> Eq for Tuple6VarULE<A, B, C, D, E, F, Format>

Auto Trait Implementations§

§

impl<A, B, C, D, E, F, Format> Freeze for Tuple6VarULE<A, B, C, D, E, F, Format>
where A: ?Sized, B: ?Sized, C: ?Sized, D: ?Sized, E: ?Sized, F: ?Sized,

§

impl<A, B, C, D, E, F, Format> RefUnwindSafe for Tuple6VarULE<A, B, C, D, E, F, Format>

§

impl<A, B, C, D, E, F, Format> Send for Tuple6VarULE<A, B, C, D, E, F, Format>
where A: Send + ?Sized, B: Send + ?Sized, C: Send + ?Sized, D: Send + ?Sized, E: Send + ?Sized, F: Send + ?Sized, Format: Send,

§

impl<A, B, C, D, E, F, Format = Index16> !Sized for Tuple6VarULE<A, B, C, D, E, F, Format>

§

impl<A, B, C, D, E, F, Format> Sync for Tuple6VarULE<A, B, C, D, E, F, Format>
where A: Sync + ?Sized, B: Sync + ?Sized, C: Sync + ?Sized, D: Sync + ?Sized, E: Sync + ?Sized, F: Sync + ?Sized, Format: Sync,

§

impl<A, B, C, D, E, F, Format> Unpin for Tuple6VarULE<A, B, C, D, E, F, Format>
where A: Unpin + ?Sized, B: Unpin + ?Sized, C: Unpin + ?Sized, D: Unpin + ?Sized, E: Unpin + ?Sized, F: Unpin + ?Sized, Format: Unpin,

§

impl<A, B, C, D, E, F, Format> UnwindSafe for Tuple6VarULE<A, B, C, D, E, F, Format>
where A: UnwindSafe + ?Sized, B: UnwindSafe + ?Sized, C: UnwindSafe + ?Sized, D: UnwindSafe + ?Sized, E: UnwindSafe + ?Sized, F: UnwindSafe + ?Sized, Format: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> EncodeAsVarULE<T> for T
where T: VarULE + ?Sized,

source§

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 more
source§

fn encode_var_ule_len(&self) -> usize

Return the length, in bytes, of the corresponding VarULE type
source§

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()