pub enum ElementType {
F32,
U32,
I32,
F16,
F64,
}Expand description
Element data type for buffer contents.
Variants§
F32
32-bit float.
U32
32-bit unsigned integer.
I32
32-bit signed integer.
F16
16-bit float.
F64
64-bit float.
Implementations§
Source§impl ElementType
impl ElementType
Sourcepub fn size_bytes(self) -> usize
pub fn size_bytes(self) -> usize
Size of one element in bytes.
Trait Implementations§
Source§impl Clone for ElementType
impl Clone for ElementType
Source§fn clone(&self) -> ElementType
fn clone(&self) -> ElementType
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 ElementType
impl Debug for ElementType
Source§impl Display for ElementType
impl Display for ElementType
Source§impl PartialEq for ElementType
impl PartialEq for ElementType
impl Copy for ElementType
impl Eq for ElementType
impl StructuralPartialEq for ElementType
Auto Trait Implementations§
impl Freeze for ElementType
impl RefUnwindSafe for ElementType
impl Send for ElementType
impl Sync for ElementType
impl Unpin for ElementType
impl UnsafeUnpin for ElementType
impl UnwindSafe for ElementType
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