Struct zerovec::ule::tuplevar::Tuple5VarULE

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

VarULE type for tuples with 5 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, Format: VarZeroVecFormat> Tuple5VarULE<A, B, C, D, E, 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

Trait Implementations§

source§

impl<A: Debug + VarULE + ?Sized, B: Debug + VarULE + ?Sized, C: Debug + VarULE + ?Sized, D: Debug + VarULE + ?Sized, E: Debug + VarULE + ?Sized, Format: VarZeroVecFormat> Debug for Tuple5VarULE<A, B, C, D, E, 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, Format: VarZeroVecFormat> Deserialize<'de> for &'a Tuple5VarULE<A, B, C, D, E, 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, Format> Deserialize<'de> for Box<Tuple5VarULE<A, B, C, D, E, Format>>
where Box<A>: Deserialize<'de>, Box<B>: Deserialize<'de>, Box<C>: Deserialize<'de>, Box<D>: Deserialize<'de>, Box<E>: 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, AE, BE, CE, DE, EE, Format> EncodeAsVarULE<Tuple5VarULE<A, B, C, D, E, Format>> for (AE, BE, CE, DE, EE)
where A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, E: VarULE + ?Sized, AE: EncodeAsVarULE<A>, BE: EncodeAsVarULE<B>, CE: EncodeAsVarULE<C>, DE: EncodeAsVarULE<D>, EE: EncodeAsVarULE<E>, 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, Format: VarZeroVecFormat> Ord for Tuple5VarULE<A, B, C, D, E, 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, Format: VarZeroVecFormat> PartialEq for Tuple5VarULE<A, B, C, D, E, 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, Format: VarZeroVecFormat> PartialOrd for Tuple5VarULE<A, B, C, D, E, 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, Format> Serialize for Tuple5VarULE<A, B, C, D, E, Format>
where A: VarULE + ?Sized + Serialize, B: VarULE + ?Sized + Serialize, C: VarULE + ?Sized + Serialize, D: VarULE + ?Sized + Serialize, E: 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>, 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, Format: VarZeroVecFormat> ToOwned for Tuple5VarULE<A, B, C, D, E, Format>

source§

type Owned = Box<Tuple5VarULE<A, B, C, D, E, 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, Format: VarZeroVecFormat> VarULE for Tuple5VarULE<A, B, C, D, E, Format>

source§

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

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

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

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

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

fn as_byte_slice(&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, AE, BE, CE, DE, EE, Format> ZeroFrom<'a, Tuple5VarULE<A, B, C, D, E, Format>> for (AE, BE, CE, DE, EE)
where A: VarULE + ?Sized, B: VarULE + ?Sized, C: VarULE + ?Sized, D: VarULE + ?Sized, E: VarULE + ?Sized, AE: ZeroFrom<'a, A>, BE: ZeroFrom<'a, B>, CE: ZeroFrom<'a, C>, DE: ZeroFrom<'a, D>, EE: ZeroFrom<'a, E>, Format: VarZeroVecFormat,

source§

fn zero_from(other: &'a Tuple5VarULE<A, B, C, D, E, 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, Format: VarZeroVecFormat> Eq for Tuple5VarULE<A, B, C, D, E, Format>

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

impl<A, B, C, D, E, Format> UnwindSafe for Tuple5VarULE<A, B, C, D, E, Format>
where A: UnwindSafe + ?Sized, B: UnwindSafe + ?Sized, C: UnwindSafe + ?Sized, D: UnwindSafe + ?Sized, E: 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()