Enum const_type_layout::TypeStructure
source · pub enum TypeStructure<'a, F: Deref<Target = [Field<'a>]> = &'a [Field<'a>], V: Deref<Target = [Variant<'a, F>]> = &'a [Variant<'a, F>]> {
Struct {
repr: &'a str,
fields: F,
},
Union {
repr: &'a str,
fields: F,
},
Enum {
repr: &'a str,
variants: V,
},
Primitive,
Array {
item: &'a str,
len: usize,
},
Reference {
inner: &'a str,
mutability: Mutability,
},
Pointer {
inner: &'a str,
mutability: Mutability,
},
}
Variants§
Trait Implementations§
source§impl<'a, F: Clone + Deref<Target = [Field<'a>]>, V: Clone + Deref<Target = [Variant<'a, F>]>> Clone for TypeStructure<'a, F, V>
impl<'a, F: Clone + Deref<Target = [Field<'a>]>, V: Clone + Deref<Target = [Variant<'a, F>]>> Clone for TypeStructure<'a, F, V>
source§fn clone(&self) -> TypeStructure<'a, F, V>
fn clone(&self) -> TypeStructure<'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 TypeStructure<'a, F, V>
impl<'a, F: Debug + Deref<Target = [Field<'a>]>, V: Debug + Deref<Target = [Variant<'a, F>]>> Debug for TypeStructure<'a, F, V>
source§impl<'a, F: Hash + Deref<Target = [Field<'a>]>, V: Hash + Deref<Target = [Variant<'a, F>]>> Hash for TypeStructure<'a, F, V>
impl<'a, F: Hash + Deref<Target = [Field<'a>]>, V: Hash + Deref<Target = [Variant<'a, F>]>> Hash for TypeStructure<'a, F, V>
source§impl<'a, F: Ord + Deref<Target = [Field<'a>]>, V: Ord + Deref<Target = [Variant<'a, F>]>> Ord for TypeStructure<'a, F, V>
impl<'a, F: Ord + Deref<Target = [Field<'a>]>, V: Ord + Deref<Target = [Variant<'a, F>]>> Ord for TypeStructure<'a, F, V>
source§fn cmp(&self, other: &TypeStructure<'a, F, V>) -> Ordering
fn cmp(&self, other: &TypeStructure<'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<TypeStructure<'a, F, V>> for TypeStructure<'a, F, V>
impl<'a, F: PartialEq + Deref<Target = [Field<'a>]>, V: PartialEq + Deref<Target = [Variant<'a, F>]>> PartialEq<TypeStructure<'a, F, V>> for TypeStructure<'a, F, V>
source§fn eq(&self, other: &TypeStructure<'a, F, V>) -> bool
fn eq(&self, other: &TypeStructure<'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<TypeStructure<'a, F, V>> for TypeStructure<'a, F, V>
impl<'a, F: PartialOrd + Deref<Target = [Field<'a>]>, V: PartialOrd + Deref<Target = [Variant<'a, F>]>> PartialOrd<TypeStructure<'a, F, V>> for TypeStructure<'a, F, V>
source§fn partial_cmp(&self, other: &TypeStructure<'a, F, V>) -> Option<Ordering>
fn partial_cmp(&self, other: &TypeStructure<'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