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: u32
Offset from the beginning from the struct.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for StructMember
impl<'arbitrary> Arbitrary<'arbitrary> for StructMember
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§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<'de> Deserialize<'de> for StructMember
impl<'de> Deserialize<'de> for StructMember
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 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 ==
.source§impl Serialize for StructMember
impl Serialize for StructMember
impl Eq for StructMember
impl StructuralEq for StructMember
impl StructuralPartialEq for StructMember
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.