pub struct DrawIndices(/* private fields */);
Implementations§
Source§impl DrawIndices
impl DrawIndices
pub const TRANSPARENT: Self
pub const fn from_array(array: [DrawIndex; 4]) -> Self
pub const fn into_array(self) -> [DrawIndex; 4]
Sourcepub const unsafe fn from_u16_unchecked(inner: u16) -> Self
pub const unsafe fn from_u16_unchecked(inner: u16) -> Self
Creates a DrawIndices
value from u16
.
§Safety
Every four bits of inner
argument must contain value in range 0..=4
to safely create DrawIndex
value using DrawIndex::new_unchecked
pub const fn into_u16(self) -> u16
Trait Implementations§
Source§impl Clone for DrawIndices
impl Clone for DrawIndices
Source§fn clone(&self) -> DrawIndices
fn clone(&self) -> DrawIndices
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 Default for DrawIndices
impl Default for DrawIndices
Source§fn default() -> DrawIndices
fn default() -> DrawIndices
Returns the “default value” for a type. Read more
Source§impl From<DrawIndices> for u16
impl From<DrawIndices> for u16
Source§fn from(v: DrawIndices) -> Self
fn from(v: DrawIndices) -> Self
Converts to this type from the input type.
impl Copy for DrawIndices
Auto Trait Implementations§
impl Freeze for DrawIndices
impl RefUnwindSafe for DrawIndices
impl Send for DrawIndices
impl Sync for DrawIndices
impl Unpin for DrawIndices
impl UnwindSafe for DrawIndices
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