#[repr(C)]pub struct FooAttr { /* private fields */ }Expand description
Stores the attributes for a single vertex.
Trait Implementations§
Source§impl AttrStruct for FooAttr
impl AttrStruct for FooAttr
Source§fn fields_count() -> usize
fn fields_count() -> usize
The number of fields in the struct
Source§fn field_gl_name(i: usize) -> &'static str
fn field_gl_name(i: usize) -> &'static str
The GLSL name of the attribute corresponding to field
iSource§fn field_offset(i: usize) -> usize
fn field_offset(i: usize) -> usize
The offset of field
i in the struct in bytesSource§fn field_type(i: usize) -> u32
fn field_type(i: usize) -> u32
The base type of field
i in the struct with constants like WebGlRenderingContext::BYTESource§fn field_num_comps(i: usize) -> usize
fn field_num_comps(i: usize) -> usize
The number of components for the type in field
iSource§fn field_normalized(i: usize) -> bool
fn field_normalized(i: usize) -> bool
Whether the field
i should be normalizedAuto Trait Implementations§
impl Freeze for FooAttr
impl RefUnwindSafe for FooAttr
impl Send for FooAttr
impl Sync for FooAttr
impl Unpin for FooAttr
impl UnwindSafe for FooAttr
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.