pub struct Slice<T> { /* private fields */ }
Expand description
An owned view into a contiguous sequence of bytes.
Implementations§
Source§impl<T> Slice<T>
impl<T> Slice<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Unwrap the slice into its underlying type.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Slice<T>where
T: Freeze,
impl<T> RefUnwindSafe for Slice<T>where
T: RefUnwindSafe,
impl<T> Send for Slice<T>where
T: Send,
impl<T> Sync for Slice<T>where
T: Sync,
impl<T> Unpin for Slice<T>where
T: Unpin,
impl<T> UnwindSafe for Slice<T>where
T: 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