Struct naga::proc::layouter::TypeLayout
source · 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
)