pub struct BufferRef<'a> { /* private fields */ }
Expand description
BufferRef is an unowned, read-only view over a Buffer.
Implementations§
Source§impl<'a> BufferRef<'a>
impl<'a> BufferRef<'a>
pub fn is_empty(&self) -> bool
Sourcepub fn subslice<R: SliceRange>(&self, range: R) -> BufferRef<'_>
pub fn subslice<R: SliceRange>(&self, range: R) -> BufferRef<'_>
Slices and consumes this reference. See Buffer::subslice.
Trait Implementations§
impl<'a> Copy for BufferRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for BufferRef<'a>
impl<'a> RefUnwindSafe for BufferRef<'a>
impl<'a> Send for BufferRef<'a>
impl<'a> Sync for BufferRef<'a>
impl<'a> Unpin for BufferRef<'a>
impl<'a> UnwindSafe for BufferRef<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)