Struct naga::proc::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
source§fn eq(&self, other: &TypeLayout) -> bool
fn eq(&self, other: &TypeLayout) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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