pub struct Slice<'a, T> {
pub ptr: *const T,
pub len: usize,
/* private fields */
}Expand description
A borrowed slice of T with a lifetime tied to the producer’s storage.
Used in the manifest to enumerate per-trait registration entries without
crossing the boundary with Vec.
Fields§
§ptr: *const T§len: usizeImplementations§
Trait Implementations§
impl<'a, T: Copy> Copy for Slice<'a, T>
impl<T: Sync> Send for Slice<'_, T>
SAFETY: see BorrowedStr.
impl<T: Sync> Sync for Slice<'_, T>
SAFETY: see BorrowedStr.
Auto Trait Implementations§
impl<'a, T> Freeze for Slice<'a, T>
impl<'a, T> RefUnwindSafe for Slice<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Unpin for Slice<'a, T>
impl<'a, T> UnsafeUnpin for Slice<'a, T>
impl<'a, T> UnwindSafe for Slice<'a, T>where
T: RefUnwindSafe,
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