pub enum Usage {
Stream,
Static,
Dynamic,
}Expand description
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§
Implementations§
Trait Implementations§
impl Copy for Usage
impl Eq for Usage
impl StructuralPartialEq for Usage
Auto Trait Implementations§
impl Freeze for Usage
impl RefUnwindSafe for Usage
impl Send for Usage
impl Sync for Usage
impl Unpin for Usage
impl UnsafeUnpin for Usage
impl UnwindSafe for Usage
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