pub struct ProductTypeElementLayout {
pub offset: u16,
pub ty: AlgebraicTypeLayout,
pub name: Option<String>,
}Expand description
A mirrior of ProductTypeElement annotated with a Layout.
Fields§
§offset: u16The relative offset of a field’s value to its parent product value.
ty: AlgebraicTypeLayoutThe type of the field.
name: Option<String>An optional name of the field.
This allows us to convert back to ProductTypeElement,
which we do when reporting type errors.
Trait Implementations§
source§impl Debug for ProductTypeElementLayout
impl Debug for ProductTypeElementLayout
source§impl PartialEq for ProductTypeElementLayout
impl PartialEq for ProductTypeElementLayout
source§fn eq(&self, other: &ProductTypeElementLayout) -> bool
fn eq(&self, other: &ProductTypeElementLayout) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ProductTypeElementLayout
impl StructuralPartialEq for ProductTypeElementLayout
Auto Trait Implementations§
impl RefUnwindSafe for ProductTypeElementLayout
impl Send for ProductTypeElementLayout
impl Sync for ProductTypeElementLayout
impl Unpin for ProductTypeElementLayout
impl UnwindSafe for ProductTypeElementLayout
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