pub struct VertexDescriptor { /* private fields */ }Implementations§
Source§impl VertexDescriptor
impl VertexDescriptor
pub fn copy(&self) -> Result<Self>
pub fn info(&self) -> Result<VertexDescriptorInfo>
pub fn attribute_count(&self) -> usize
pub fn attribute_at(&self, index: usize) -> Option<VertexAttribute>
pub fn attribute_named(&self, name: &str) -> Result<Option<VertexAttribute>>
pub fn attributes(&self) -> Vec<VertexAttribute>
pub fn reset(&self)
pub fn set_packed_offsets(&self)
pub fn set_packed_strides(&self)
Trait Implementations§
Source§impl Clone for VertexDescriptor
impl Clone for VertexDescriptor
Source§fn clone(&self) -> VertexDescriptor
fn clone(&self) -> VertexDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VertexDescriptor
impl RefUnwindSafe for VertexDescriptor
impl !Send for VertexDescriptor
impl !Sync for VertexDescriptor
impl Unpin for VertexDescriptor
impl UnsafeUnpin for VertexDescriptor
impl UnwindSafe for VertexDescriptor
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