pub struct Slice<'a, T> {
pub value: &'a T,
pub start: usize,
pub end: usize,
}
Fields§
§value: &'a T
§start: usize
§end: usize
Implementations§
Trait Implementations§
impl<'a, T: Copy> Copy for Slice<'a, T>
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> Send for Slice<'a, T>where
T: Sync,
impl<'a, T> Sync for Slice<'a, T>where
T: Sync,
impl<'a, T> Unpin 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