Struct const_type_layout::Field
source · pub struct Field<'a> {
pub name: &'a str,
pub offset: MaybeUninhabited<usize>,
pub ty: &'a str,
}
Fields§
§name: &'a str
§offset: MaybeUninhabited<usize>
§ty: &'a str
Trait Implementations§
source§impl<'a> Ord for Field<'a>
impl<'a> Ord for Field<'a>
source§impl<'a> PartialEq<Field<'a>> for Field<'a>
impl<'a> PartialEq<Field<'a>> for Field<'a>
source§impl<'a> PartialOrd<Field<'a>> for Field<'a>
impl<'a> PartialOrd<Field<'a>> for Field<'a>
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