pub struct ExampleVertexStruct {
pub ints: Uint8,
pub norms: Snorm8x4,
pub floats: Float32x3,
/* private fields */
}Fields§
§ints: Uint8§norms: Snorm8x4§floats: Float32x3Implementations§
Trait Implementations§
Source§impl Clone for ExampleVertexStruct
impl Clone for ExampleVertexStruct
Source§fn clone(&self) -> ExampleVertexStruct
fn clone(&self) -> ExampleVertexStruct
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 ExampleVertexStruct
impl Debug for ExampleVertexStruct
Source§impl Default for ExampleVertexStruct
impl Default for ExampleVertexStruct
Source§impl From<(<Uint8 as MewVertexFormat>::Inner, <Snorm8x4 as MewVertexFormat>::Inner, <Float32x3 as MewVertexFormat>::Inner)> for ExampleVertexStruct
impl From<(<Uint8 as MewVertexFormat>::Inner, <Snorm8x4 as MewVertexFormat>::Inner, <Float32x3 as MewVertexFormat>::Inner)> for ExampleVertexStruct
Source§fn from(
inners: (<Uint8 as MewVertexFormat>::Inner, <Snorm8x4 as MewVertexFormat>::Inner, <Float32x3 as MewVertexFormat>::Inner),
) -> Self
fn from( inners: (<Uint8 as MewVertexFormat>::Inner, <Snorm8x4 as MewVertexFormat>::Inner, <Float32x3 as MewVertexFormat>::Inner), ) -> Self
Converts to this type from the input type.
Source§impl MewVertexStruct for ExampleVertexStruct
impl MewVertexStruct for ExampleVertexStruct
Source§type Inners = (<Uint8 as MewVertexFormat>::Inner, <Snorm8x4 as MewVertexFormat>::Inner, <Float32x3 as MewVertexFormat>::Inner)
type Inners = (<Uint8 as MewVertexFormat>::Inner, <Snorm8x4 as MewVertexFormat>::Inner, <Float32x3 as MewVertexFormat>::Inner)
A tuple of all internal types.
Source§fn from_inners(inners: Self::Inners) -> Self
fn from_inners(inners: Self::Inners) -> Self
Build the struct using its internal types.
Source§fn from_bytes(bytes: Self::Bytes) -> Self
fn from_bytes(bytes: Self::Bytes) -> Self
Build the struct out of a byte array.
Source§fn vertex_layout() -> VertexBufferLayout<'static>
fn vertex_layout() -> VertexBufferLayout<'static>
Get this vertex struct’s
wgpu::VertexBufferLayout.Source§impl PartialEq for ExampleVertexStruct
impl PartialEq for ExampleVertexStruct
Source§impl PartialOrd for ExampleVertexStruct
impl PartialOrd for ExampleVertexStruct
impl StructuralPartialEq for ExampleVertexStruct
Auto Trait Implementations§
impl Freeze for ExampleVertexStruct
impl RefUnwindSafe for ExampleVertexStruct
impl Send for ExampleVertexStruct
impl Sync for ExampleVertexStruct
impl Unpin for ExampleVertexStruct
impl UnsafeUnpin for ExampleVertexStruct
impl UnwindSafe for ExampleVertexStruct
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.