#[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§
Source§impl Clone for BufferUpdateHint
impl Clone for BufferUpdateHint
Source§fn clone(&self) -> BufferUpdateHint
fn clone(&self) -> BufferUpdateHint
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 BufferUpdateHint
impl Debug for BufferUpdateHint
Source§impl Display for BufferUpdateHint
impl Display for BufferUpdateHint
Source§impl Hash for BufferUpdateHint
impl Hash for BufferUpdateHint
Source§impl Ord for BufferUpdateHint
impl Ord for BufferUpdateHint
Source§fn cmp(&self, other: &BufferUpdateHint) -> Ordering
fn cmp(&self, other: &BufferUpdateHint) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BufferUpdateHint
impl PartialEq for BufferUpdateHint
Source§impl PartialOrd for BufferUpdateHint
impl PartialOrd for BufferUpdateHint
impl Copy for BufferUpdateHint
impl Eq for BufferUpdateHint
impl StructuralPartialEq for BufferUpdateHint
Auto Trait Implementations§
impl Freeze for BufferUpdateHint
impl RefUnwindSafe for BufferUpdateHint
impl Send for BufferUpdateHint
impl Sync for BufferUpdateHint
impl Unpin for BufferUpdateHint
impl UnwindSafe for BufferUpdateHint
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