pub struct AccessBuf<B> { /* private fields */ }
Expand description
A struct which provides n-dimensional access to an underlying BufferInstance
Implementations§
Source§impl<B> AccessBuf<B>
impl<B> AccessBuf<B>
Sourcepub fn as_mut<RB: ?Sized>(&mut self) -> AccessBuf<&mut RB>where
B: BorrowMut<RB>,
pub fn as_mut<RB: ?Sized>(&mut self) -> AccessBuf<&mut RB>where
B: BorrowMut<RB>,
Construct an AccessBuf
from a mutable reference to this buffer.
Sourcepub fn as_ref<RB: ?Sized>(&self) -> AccessBuf<&RB>where
B: Borrow<RB>,
pub fn as_ref<RB: ?Sized>(&self) -> AccessBuf<&RB>where
B: Borrow<RB>,
Construct an AccessBuf
from a reference to this buffer.
Sourcepub fn inner(&self) -> &B
pub fn inner(&self) -> &B
Borrow the underlying BufferInstance
of this AccessBuf
.
Sourcepub fn inner_mut(&mut self) -> &mut B
pub fn inner_mut(&mut self) -> &mut B
Borrow the underlying BufferInstance
of this AccessBuf
mutably.
Sourcepub fn into_inner(self) -> B
pub fn into_inner(self) -> B
Destructure this AccessBuf
into its underlying BufferInstance
.
Trait Implementations§
Source§impl<T, B> AccessMut<T> for AccessBuf<B>
impl<T, B> AccessMut<T> for AccessBuf<B>
Auto Trait Implementations§
impl<B> Freeze for AccessBuf<B>where
B: Freeze,
impl<B> RefUnwindSafe for AccessBuf<B>where
B: RefUnwindSafe,
impl<B> Send for AccessBuf<B>where
B: Send,
impl<B> Sync for AccessBuf<B>where
B: Sync,
impl<B> Unpin for AccessBuf<B>where
B: Unpin,
impl<B> UnwindSafe for AccessBuf<B>where
B: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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