pub struct TypeLayout {
pub size: u32,
pub alignment: Alignment,
}
Expand description
Size and alignment information for a type.
Fields§
§size: u32
§alignment: Alignment
Implementations§
Trait Implementations§
Source§impl Clone for TypeLayout
impl Clone for TypeLayout
Source§fn clone(&self) -> TypeLayout
fn clone(&self) -> TypeLayout
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 Debug for TypeLayout
impl Debug for TypeLayout
Source§impl Hash for TypeLayout
impl Hash for TypeLayout
Source§impl PartialEq for TypeLayout
impl PartialEq for TypeLayout
impl Copy for TypeLayout
impl StructuralPartialEq for TypeLayout
Auto Trait Implementations§
impl Freeze for TypeLayout
impl RefUnwindSafe for TypeLayout
impl Send for TypeLayout
impl Sync for TypeLayout
impl Unpin for TypeLayout
impl UnwindSafe for TypeLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)