pub struct AsRefBuffer<B>(pub B);
Expand description
A wrapper around buffer implementing AsRef
.
Tuple Fields§
§0: B
Trait Implementations§
Source§impl<B: BorrowMetadata> BorrowMetadata for AsRefBuffer<B>
impl<B: BorrowMetadata> BorrowMetadata for AsRefBuffer<B>
Source§type Metadata = <B as BorrowMetadata>::Metadata
type Metadata = <B as BorrowMetadata>::Metadata
The metadata borrowed.
Source§fn borrow_metadata(&self) -> &Self::Metadata
fn borrow_metadata(&self) -> &Self::Metadata
Borrow the metadata.
Source§impl<B: Clone> Clone for AsRefBuffer<B>
impl<B: Clone> Clone for AsRefBuffer<B>
Source§fn clone(&self) -> AsRefBuffer<B>
fn clone(&self) -> AsRefBuffer<B>
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<B: Debug> Debug for AsRefBuffer<B>
impl<B: Debug> Debug for AsRefBuffer<B>
Source§impl<B> Deref for AsRefBuffer<B>
impl<B> Deref for AsRefBuffer<B>
Auto Trait Implementations§
impl<B> Freeze for AsRefBuffer<B>where
B: Freeze,
impl<B> RefUnwindSafe for AsRefBuffer<B>where
B: RefUnwindSafe,
impl<B> Send for AsRefBuffer<B>where
B: Send,
impl<B> Sync for AsRefBuffer<B>where
B: Sync,
impl<B> Unpin for AsRefBuffer<B>where
B: Unpin,
impl<B> UnwindSafe for AsRefBuffer<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