pub struct VertexAttributeDesc { /* private fields */ }
Implementations§
Source§impl VertexAttributeDesc
impl VertexAttributeDesc
pub fn new( name: String, format: VertexFormat, offset: usize, ) -> VertexAttributeDesc
pub fn name(&self) -> &String
pub fn format(&self) -> VertexFormat
pub fn offset(&self) -> usize
Trait Implementations§
Source§impl Clone for VertexAttributeDesc
impl Clone for VertexAttributeDesc
Source§fn clone(&self) -> VertexAttributeDesc
fn clone(&self) -> VertexAttributeDesc
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 moreAuto Trait Implementations§
impl Freeze for VertexAttributeDesc
impl RefUnwindSafe for VertexAttributeDesc
impl Send for VertexAttributeDesc
impl Sync for VertexAttributeDesc
impl Unpin for VertexAttributeDesc
impl UnwindSafe for VertexAttributeDesc
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