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 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<'a, T, B, RB> AccessBorrowMut<'a, T, AccessBuf<&'a mut RB>> for AccessBuf<B>
impl<'a, T, B, RB> AccessBorrowMut<'a, T, AccessBuf<&'a mut RB>> for AccessBuf<B>
fn borrow_mut(&'a mut self) -> AccessBuf<&'a mut RB>
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 moreSource§impl<F> Match for F
impl<F> Match for F
Source§fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
Returns
true if self can be cast into the target type T.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
Source§fn can_cast_from(_: &F) -> bool
fn can_cast_from(_: &F) -> bool
Test if
value can be cast into Self.Source§fn opt_cast_from(f: F) -> Option<T>
fn opt_cast_from(f: F) -> Option<T>
Returns
Some(Self) if the source value can be cast into Self, otherwise None.Source§impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
Source§fn can_cast_into(&self) -> bool
fn can_cast_into(&self) -> bool
Test if
self can be cast into T.Source§fn opt_cast_into(self) -> Option<T>
fn opt_cast_into(self) -> Option<T>
Returns
Some(T) if self can be cast into T, otherwise None.Source§fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err>where
OnErr: FnOnce(&Self) -> Err,
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err>where
OnErr: FnOnce(&Self) -> Err,
Returns
Ok(T) if self can be cast into T, otherwise calls on_err.