pub struct View<'a, 'id> { /* private fields */ }Expand description
A real source borrow carrying its immutable owner’s identity.
Implementations§
Source§impl<'a, 'id> View<'a, 'id>
impl<'a, 'id> View<'a, 'id>
pub const fn as_slice(&self) -> &'a [u8] ⓘ
Sourcepub fn get<P: Select<'id>>(self, proof: P) -> (&'a [u8], Range<'id>)
pub fn get<P: Select<'id>>(self, proof: P) -> (&'a [u8], Range<'id>)
Projects an admitted selection from this same immutable source identity.
pub fn try_get(self, bounds: Range<usize>) -> Result<Range<'id>, Error>
pub fn try_rsplit<const N: usize>( self, ) -> Result<(&'a [u8; N], Range<'id>), Error>
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'id> !Send for View<'a, 'id>
impl<'a, 'id> !Sync for View<'a, 'id>
impl<'a, 'id> Freeze for View<'a, 'id>
impl<'a, 'id> RefUnwindSafe for View<'a, 'id>
impl<'a, 'id> Unpin for View<'a, 'id>
impl<'a, 'id> UnsafeUnpin for View<'a, 'id>
impl<'a, 'id> UnwindSafe for View<'a, 'id>
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