pub struct MetalField {
pub ty: MetalType,
pub name: String,
pub attr: MetalParamAttr,
}Expand description
A field inside a Metal struct.
Fields§
§ty: MetalTypeField type
name: StringField name
attr: MetalParamAttrOptional attribute, e.g. [[position]]
Implementations§
Source§impl MetalField
impl MetalField
Trait Implementations§
Source§impl Clone for MetalField
impl Clone for MetalField
Source§fn clone(&self) -> MetalField
fn clone(&self) -> MetalField
Returns a duplicate 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 MetalField
impl Debug for MetalField
Source§impl PartialEq for MetalField
impl PartialEq for MetalField
impl StructuralPartialEq for MetalField
Auto Trait Implementations§
impl Freeze for MetalField
impl RefUnwindSafe for MetalField
impl Send for MetalField
impl Sync for MetalField
impl Unpin for MetalField
impl UnsafeUnpin for MetalField
impl UnwindSafe for MetalField
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