pub enum View<'req, 'd> {
Slice(&'req [u8]),
Resident(&'req Shared<'d>),
Shared(&'req Shared),
}Expand description
A contiguous projection retaining its original storage owner.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'req, 'd> !RefUnwindSafe for View<'req, 'd>
impl<'req, 'd> !Send for View<'req, 'd>
impl<'req, 'd> !Sync for View<'req, 'd>
impl<'req, 'd> !UnwindSafe for View<'req, 'd>
impl<'req, 'd> Freeze for View<'req, 'd>
impl<'req, 'd> Unpin for View<'req, 'd>
impl<'req, 'd> UnsafeUnpin for View<'req, 'd>
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