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<'de> Deserialize<'de> for TypeLayout
impl<'de> Deserialize<'de> for TypeLayout
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 ==
.source§impl Serialize for TypeLayout
impl Serialize 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