Struct const_type_layout::TypeLayoutInfo
source · pub struct TypeLayoutInfo<'a, F: Deref<Target = [Field<'a>]> = &'a [Field<'a>], V: Deref<Target = [Variant<'a, F>]> = &'a [Variant<'a, F>]> {
pub name: &'a str,
pub size: usize,
pub alignment: usize,
pub structure: TypeStructure<'a, F, V>,
}
Fields§
§name: &'a str
§size: usize
§alignment: usize
§structure: TypeStructure<'a, F, V>
Trait Implementations§
source§impl<'a, F: Clone + Deref<Target = [Field<'a>]>, V: Clone + Deref<Target = [Variant<'a, F>]>> Clone for TypeLayoutInfo<'a, F, V>
impl<'a, F: Clone + Deref<Target = [Field<'a>]>, V: Clone + Deref<Target = [Variant<'a, F>]>> Clone for TypeLayoutInfo<'a, F, V>
source§fn clone(&self) -> TypeLayoutInfo<'a, F, V>
fn clone(&self) -> TypeLayoutInfo<'a, F, V>
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<'a, F: Debug + Deref<Target = [Field<'a>]>, V: Debug + Deref<Target = [Variant<'a, F>]>> Debug for TypeLayoutInfo<'a, F, V>
impl<'a, F: Debug + Deref<Target = [Field<'a>]>, V: Debug + Deref<Target = [Variant<'a, F>]>> Debug for TypeLayoutInfo<'a, F, V>
source§impl<'a, F: Hash + Deref<Target = [Field<'a>]>, V: Hash + Deref<Target = [Variant<'a, F>]>> Hash for TypeLayoutInfo<'a, F, V>
impl<'a, F: Hash + Deref<Target = [Field<'a>]>, V: Hash + Deref<Target = [Variant<'a, F>]>> Hash for TypeLayoutInfo<'a, F, V>
source§impl<'a, F: Ord + Deref<Target = [Field<'a>]>, V: Ord + Deref<Target = [Variant<'a, F>]>> Ord for TypeLayoutInfo<'a, F, V>
impl<'a, F: Ord + Deref<Target = [Field<'a>]>, V: Ord + Deref<Target = [Variant<'a, F>]>> Ord for TypeLayoutInfo<'a, F, V>
source§fn cmp(&self, other: &TypeLayoutInfo<'a, F, V>) -> Ordering
fn cmp(&self, other: &TypeLayoutInfo<'a, F, V>) -> 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<'a, F: PartialEq + Deref<Target = [Field<'a>]>, V: PartialEq + Deref<Target = [Variant<'a, F>]>> PartialEq<TypeLayoutInfo<'a, F, V>> for TypeLayoutInfo<'a, F, V>
impl<'a, F: PartialEq + Deref<Target = [Field<'a>]>, V: PartialEq + Deref<Target = [Variant<'a, F>]>> PartialEq<TypeLayoutInfo<'a, F, V>> for TypeLayoutInfo<'a, F, V>
source§fn eq(&self, other: &TypeLayoutInfo<'a, F, V>) -> bool
fn eq(&self, other: &TypeLayoutInfo<'a, F, V>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, F: PartialOrd + Deref<Target = [Field<'a>]>, V: PartialOrd + Deref<Target = [Variant<'a, F>]>> PartialOrd<TypeLayoutInfo<'a, F, V>> for TypeLayoutInfo<'a, F, V>
impl<'a, F: PartialOrd + Deref<Target = [Field<'a>]>, V: PartialOrd + Deref<Target = [Variant<'a, F>]>> PartialOrd<TypeLayoutInfo<'a, F, V>> for TypeLayoutInfo<'a, F, V>
source§fn partial_cmp(&self, other: &TypeLayoutInfo<'a, F, V>) -> Option<Ordering>
fn partial_cmp(&self, other: &TypeLayoutInfo<'a, F, V>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more