pub struct Slice<'buf> { /* private fields */ }
Expand description
A slice of buffer data. This borrows the buffer data and can be thought of
as similar to &[T]
obtained by slicing a Vec<T>
.
Implementations§
Trait Implementations§
impl<'buf> Copy for Slice<'buf>
Auto Trait Implementations§
impl<'buf> RefUnwindSafe for Slice<'buf>
impl<'buf> Send for Slice<'buf>
impl<'buf> Sync for Slice<'buf>
impl<'buf> Unpin for Slice<'buf>
impl<'buf> UnwindSafe for Slice<'buf>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more