Enum solstice::buffer::Usage[][src]

pub enum Usage {
    Stream,
    Static,
    Dynamic,
}

Used to hint to the implementation how frequently the user will be changing the buffer’s data.

  • Static: The user will set the data once.
  • Dynamic: The user will set the data occasionally.
  • Stream: The user will be changing the data after every use. Or almost every use.

Variants

Stream
Static
Dynamic

Implementations

impl Usage[src]

pub fn to_gl(self) -> u32[src]

Trait Implementations

impl Clone for Usage[src]

impl Copy for Usage[src]

impl Debug for Usage[src]

Auto Trait Implementations

impl RefUnwindSafe for Usage

impl Send for Usage

impl Sync for Usage

impl Unpin for Usage

impl UnwindSafe for Usage

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.