#[repr(C)]pub struct Slice<T: 'static> {
ptr: *const T,
len: usize,
}Expand description
len items starting at ptr, which live for the rest of the program.
Fields§
§ptr: *const T§len: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Send for Slice<T>
impl<T> Freeze for Slice<T>
impl<T> RefUnwindSafe for Slice<T>where
T: RefUnwindSafe,
impl<T> Unpin for Slice<T>
impl<T> UnsafeUnpin for Slice<T>
impl<T> UnwindSafe for Slice<T>where
T: RefUnwindSafe,
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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