Enum webgl_rc::BufferUsage
source · [−]#[repr(u32)]
pub enum BufferUsage {
Stream,
Static,
Dynamic,
}Variants
Stream
The data store contents will be modified once and used at most a few times.
Static
The data store contents will be modified once and used many times.
Dynamic
The data store contents will be modified repeatedly and used many times.
Trait Implementations
sourceimpl Clone for BufferUsage
impl Clone for BufferUsage
sourcefn clone(&self) -> BufferUsage
fn clone(&self) -> BufferUsage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BufferUsage
impl Debug for BufferUsage
sourceimpl From<BufferUsage> for u32
impl From<BufferUsage> for u32
sourcefn from(enum_value: BufferUsage) -> Self
fn from(enum_value: BufferUsage) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<BufferUsage> for BufferUsage
impl PartialEq<BufferUsage> for BufferUsage
sourcefn eq(&self, other: &BufferUsage) -> bool
fn eq(&self, other: &BufferUsage) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl TryFrom<u32> for BufferUsage
impl TryFrom<u32> for BufferUsage
type Error = TryFromPrimitiveError<BufferUsage>
type Error = TryFromPrimitiveError<BufferUsage>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for BufferUsage
impl TryFromPrimitive for BufferUsage
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BufferUsage
impl Eq for BufferUsage
impl StructuralEq for BufferUsage
impl StructuralPartialEq for BufferUsage
Auto Trait Implementations
impl RefUnwindSafe for BufferUsage
impl Send for BufferUsage
impl Sync for BufferUsage
impl Unpin for BufferUsage
impl UnwindSafe for BufferUsage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more