pub enum StorageContents {
Count(usize),
Array(TypedArray),
}Expand description
What StorageBufferAttribute::new is given: three’s count (a number,
for a zero-filled array of count * itemSize) or a typed array.
Variants§
Count(usize)
new StorageBufferAttribute( count, itemSize, typeClass ).
Array(TypedArray)
new StorageBufferAttribute( array, itemSize ).
Trait Implementations§
Source§impl Clone for StorageContents
impl Clone for StorageContents
Source§impl Debug for StorageContents
impl Debug for StorageContents
Source§impl From<TypedArray> for StorageContents
impl From<TypedArray> for StorageContents
Source§fn from(array: TypedArray) -> Self
fn from(array: TypedArray) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StorageContents
impl RefUnwindSafe for StorageContents
impl Send for StorageContents
impl Sync for StorageContents
impl Unpin for StorageContents
impl UnsafeUnpin for StorageContents
impl UnwindSafe for StorageContents
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