#[non_exhaustive]
pub enum BufferUpdateHint {
Static,
Dynamic,
Stream,
}
Expand description
The update hint on a buffer.
Allows the user to give some detail on how often the buffer data is going to be updated.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Static
the buffer will not change over time
Dynamic
the buffer will change from time to time
Stream
the buffer will be used once or a couple of times
Trait Implementations
sourceimpl Clone for BufferUpdateHint
impl Clone for BufferUpdateHint
sourcefn clone(&self) -> BufferUpdateHint
fn clone(&self) -> BufferUpdateHint
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 BufferUpdateHint
impl Debug for BufferUpdateHint
sourceimpl Default for BufferUpdateHint
impl Default for BufferUpdateHint
sourceimpl Display for BufferUpdateHint
impl Display for BufferUpdateHint
sourceimpl Hash for BufferUpdateHint
impl Hash for BufferUpdateHint
sourceimpl Ord for BufferUpdateHint
impl Ord for BufferUpdateHint
sourceimpl PartialEq<BufferUpdateHint> for BufferUpdateHint
impl PartialEq<BufferUpdateHint> for BufferUpdateHint
sourceimpl PartialOrd<BufferUpdateHint> for BufferUpdateHint
impl PartialOrd<BufferUpdateHint> for BufferUpdateHint
sourcefn partial_cmp(&self, other: &BufferUpdateHint) -> Option<Ordering>
fn partial_cmp(&self, other: &BufferUpdateHint) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for BufferUpdateHint
impl Eq for BufferUpdateHint
impl StructuralEq for BufferUpdateHint
impl StructuralPartialEq for BufferUpdateHint
Auto Trait Implementations
impl RefUnwindSafe for BufferUpdateHint
impl Send for BufferUpdateHint
impl Sync for BufferUpdateHint
impl Unpin for BufferUpdateHint
impl UnwindSafe for BufferUpdateHint
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
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
fn clamped(self, min: T, max: T) -> T
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.