pub struct Buffer<T, const USAGE: u32> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<T, const USAGE: u32> AsBufferSlice<T, USAGE> for Buffer<T, USAGE>where
T: Pod,
impl<T, const USAGE: u32> AsBufferSlice<T, USAGE> for Buffer<T, USAGE>where
T: Pod,
fn as_slice(&self) -> BufferSlice<'_, T, USAGE>
Auto Trait Implementations§
impl<T, const USAGE: u32> !Freeze for Buffer<T, USAGE>
impl<T, const USAGE: u32> !RefUnwindSafe for Buffer<T, USAGE>
impl<T, const USAGE: u32> Send for Buffer<T, USAGE>where
T: Send,
impl<T, const USAGE: u32> Sync for Buffer<T, USAGE>where
T: Sync,
impl<T, const USAGE: u32> Unpin for Buffer<T, USAGE>where
T: Unpin,
impl<T, const USAGE: u32> !UnwindSafe for Buffer<T, 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more