pub struct TypeAlignSpan {
pub ty: Handle<Type>,
pub align: Alignment,
pub span: u32,
}
Expand description
Struct with information needed for defining a struct member.
Returned by calculate_offset
.
Fields§
§ty: Handle<Type>
The handle to the type, this might be the same handle passed to
calculate_offset
or a new such a new array type with a different
stride set.
align: Alignment
The alignment required by the type.
span: u32
The size of the type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeAlignSpan
impl RefUnwindSafe for TypeAlignSpan
impl Send for TypeAlignSpan
impl Sync for TypeAlignSpan
impl Unpin for TypeAlignSpan
impl UnwindSafe for TypeAlignSpan
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