Struct naga::StructMember
source · pub struct StructMember {
pub name: Option<String>,
pub ty: Handle<Type>,
pub binding: Option<Binding>,
pub offset: u32,
}Expand description
Member of a user-defined structure.
Fields§
§name: Option<String>§ty: Handle<Type>Type of the field.
binding: Option<Binding>For I/O structs, defines the binding.
offset: u32Offset from the beginning from the struct.
Trait Implementations§
source§impl Clone for StructMember
impl Clone for StructMember
source§fn clone(&self) -> StructMember
fn clone(&self) -> StructMember
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 StructMember
impl Debug for StructMember
source§impl Hash for StructMember
impl Hash for StructMember
source§impl PartialEq for StructMember
impl PartialEq for StructMember
source§fn eq(&self, other: &StructMember) -> bool
fn eq(&self, other: &StructMember) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for StructMember
impl StructuralPartialEq for StructMember
Auto Trait Implementations§
impl Freeze for StructMember
impl RefUnwindSafe for StructMember
impl Send for StructMember
impl Sync for StructMember
impl Unpin for StructMember
impl UnwindSafe for StructMember
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.