pub struct LayoutSpec {
pub size: usize,
pub align: usize,
pub repr: Repr,
}Expand description
In-memory layout of a type.
Fields§
§size: usizesize_of::<T>().
align: usizealign_of::<T>().
repr: ReprThe declared representation.
Trait Implementations§
Source§impl Clone for LayoutSpec
impl Clone for LayoutSpec
Source§fn clone(&self) -> LayoutSpec
fn clone(&self) -> LayoutSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LayoutSpec
Source§impl Debug for LayoutSpec
impl Debug for LayoutSpec
impl Eq for LayoutSpec
Source§impl PartialEq for LayoutSpec
impl PartialEq for LayoutSpec
Source§fn eq(&self, other: &LayoutSpec) -> bool
fn eq(&self, other: &LayoutSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LayoutSpec
Auto Trait Implementations§
impl Freeze for LayoutSpec
impl RefUnwindSafe for LayoutSpec
impl Send for LayoutSpec
impl Sync for LayoutSpec
impl Unpin for LayoutSpec
impl UnsafeUnpin for LayoutSpec
impl UnwindSafe for LayoutSpec
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