#[repr(C, packed(2))]pub struct ExampleVertexStruct {
pub ints: Uint16x2,
pub norms: Snorm8x4,
pub floats: Float32x3,
/* private fields */
}Fields§
§ints: Uint16x2§norms: Snorm8x4§floats: Float32x3Implementations§
Trait Implementations§
Source§impl Clone for ExampleVertexStruct
impl Clone for ExampleVertexStruct
Source§impl Debug for ExampleVertexStruct
impl Debug for ExampleVertexStruct
Source§impl Default for ExampleVertexStruct
impl Default for ExampleVertexStruct
Source§impl From<(<Uint16x2 as MewVertexFormat>::Inner, <Snorm8x4 as MewVertexFormat>::Inner, <Float32x3 as MewVertexFormat>::Inner)> for ExampleVertexStruct
impl From<(<Uint16x2 as MewVertexFormat>::Inner, <Snorm8x4 as MewVertexFormat>::Inner, <Float32x3 as MewVertexFormat>::Inner)> for ExampleVertexStruct
Source§fn from(
inners: (<Uint16x2 as MewVertexFormat>::Inner, <Snorm8x4 as MewVertexFormat>::Inner, <Float32x3 as MewVertexFormat>::Inner),
) -> Self
fn from( inners: (<Uint16x2 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
type Bytes = [u8; 20]
type Inners = (<Uint16x2 as MewVertexFormat>::Inner, <Snorm8x4 as MewVertexFormat>::Inner, <Float32x3 as MewVertexFormat>::Inner)
type InnerRefs<'i> = (&'i <Uint16x2 as MewVertexFormat>::Inner, &'i <Snorm8x4 as MewVertexFormat>::Inner, &'i <Float32x3 as MewVertexFormat>::Inner)
type InnerMuts<'i> = (&'i mut <Uint16x2 as MewVertexFormat>::Inner, &'i mut <Snorm8x4 as MewVertexFormat>::Inner, &'i mut <Float32x3 as MewVertexFormat>::Inner)
fn from_inners(inners: Self::Inners) -> Self
fn zeroed() -> Self
fn get_refs(&self) -> Self::InnerRefs<'_>
fn get_muts(&mut self) -> Self::InnerMuts<'_>
fn vertex_layout() -> VertexBufferLayout<'static>
Auto Trait Implementations§
impl Freeze for ExampleVertexStruct
impl RefUnwindSafe for ExampleVertexStruct
impl Send for ExampleVertexStruct
impl Sync for ExampleVertexStruct
impl Unpin 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.