pub struct ElementTypesLength(pub u32);Expand description
Represents the number of types of a single element inside a vector or array, without
taking into account the vector or array length.
For example, in the array [(u8, u16, [u32; 4]); 8], the element types length is 3:
- u8
- u16
- [u32; 4]
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl Clone for ElementTypesLength
impl Clone for ElementTypesLength
Source§fn clone(&self) -> ElementTypesLength
fn clone(&self) -> ElementTypesLength
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElementTypesLength
impl Debug for ElementTypesLength
Source§impl<'de> Deserialize<'de> for ElementTypesLength
impl<'de> Deserialize<'de> for ElementTypesLength
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 Display for ElementTypesLength
impl Display for ElementTypesLength
Source§impl Div<ElementTypesLength> for SemiFlattenedLength
impl Div<ElementTypesLength> for SemiFlattenedLength
Source§type Output = SemanticLength
type Output = SemanticLength
The resulting type after applying the
/ operator.Source§impl Hash for ElementTypesLength
impl Hash for ElementTypesLength
Source§impl Mul<ElementTypesLength> for SemanticLength
impl Mul<ElementTypesLength> for SemanticLength
Source§fn mul(self, rhs: ElementTypesLength) -> Self::Output
fn mul(self, rhs: ElementTypesLength) -> Self::Output
Computes the semi-flattened length by multiplying the semantic length by the element types length.
Source§type Output = SemiFlattenedLength
type Output = SemiFlattenedLength
The resulting type after applying the
* operator.Source§impl Mul<SemanticLength> for ElementTypesLength
impl Mul<SemanticLength> for ElementTypesLength
Source§fn mul(self, rhs: SemanticLength) -> Self::Output
fn mul(self, rhs: SemanticLength) -> Self::Output
Computes the semi-flattened length by multiplying the semantic length by the element types length.
Source§type Output = SemiFlattenedLength
type Output = SemiFlattenedLength
The resulting type after applying the
* operator.Source§impl Ord for ElementTypesLength
impl Ord for ElementTypesLength
Source§fn cmp(&self, other: &ElementTypesLength) -> Ordering
fn cmp(&self, other: &ElementTypesLength) -> Ordering
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 PartialEq for ElementTypesLength
impl PartialEq for ElementTypesLength
Source§impl PartialOrd for ElementTypesLength
impl PartialOrd for ElementTypesLength
Source§impl Serialize for ElementTypesLength
impl Serialize for ElementTypesLength
impl Copy for ElementTypesLength
impl Eq for ElementTypesLength
impl StructuralPartialEq for ElementTypesLength
Auto Trait Implementations§
impl Freeze for ElementTypesLength
impl RefUnwindSafe for ElementTypesLength
impl Send for ElementTypesLength
impl Sync for ElementTypesLength
impl Unpin for ElementTypesLength
impl UnwindSafe for ElementTypesLength
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more