#[repr(u8)]pub enum BufferElementType {
Float32 = 0,
Float16 = 1,
SInt8 = 2,
SInt16 = 3,
SInt32 = 4,
UInt8 = 5,
UInt16 = 6,
UInt32 = 7,
}
Expand description
The type of an element in a buffer
This deliberately does not implement Default
Variants§
Float32 = 0
32-bit floating point
Float16 = 1
16-bit floating point
SInt8 = 2
Signed 8-bit integers
SInt16 = 3
Signed 16-bit integers
SInt32 = 4
Signed 32-bit integers
UInt8 = 5
Unsigned 8-bit integers
UInt16 = 6
Unsigned 16-bit integers
UInt32 = 7
Unsigned 32-bit integers
Implementations§
Source§impl BufferElementType
impl BufferElementType
Sourcepub fn byte_length(self) -> u32
pub fn byte_length(self) -> u32
Get the length in bytes of the element type
Trait Implementations§
Source§impl Clone for BufferElementType
impl Clone for BufferElementType
Source§fn clone(&self) -> BufferElementType
fn clone(&self) -> BufferElementType
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 Debug for BufferElementType
impl Debug for BufferElementType
Source§impl<'de> Deserialize<'de> for BufferElementType
impl<'de> Deserialize<'de> for BufferElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BufferElementType
impl PartialEq for BufferElementType
Source§impl Serialize for BufferElementType
impl Serialize for BufferElementType
impl Copy for BufferElementType
impl Eq for BufferElementType
impl StructuralPartialEq for BufferElementType
Auto Trait Implementations§
impl Freeze for BufferElementType
impl RefUnwindSafe for BufferElementType
impl Send for BufferElementType
impl Sync for BufferElementType
impl Unpin for BufferElementType
impl UnwindSafe for BufferElementType
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