pub struct Decoded<S = Span, const PREFIX: usize = 0> { /* private fields */ }Implementations§
Source§impl<const PREFIX: usize> Decoded<Span, PREFIX>
impl<const PREFIX: usize> Decoded<Span, PREFIX>
Sourcepub fn into_lease(self) -> Span
pub fn into_lease(self) -> Span
Consumes the record proof and returns its exclusively owned storage.
Source§impl<S: AsRef<[u8]>, const PREFIX: usize> Decoded<S, PREFIX>
impl<S: AsRef<[u8]>, const PREFIX: usize> Decoded<S, PREFIX>
pub fn iter(&self) -> Iter<'_> ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, name: &[u8]) -> Option<&[u8]>
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn ranges(&self) -> RangeIter<'_> ⓘ
pub fn try_to_owned(&self) -> Result<Vec<Owned>, Error>
Trait Implementations§
impl<const PREFIX: usize> Eq for Decoded<Span, PREFIX>
Auto Trait Implementations§
impl<S, const PREFIX: usize> Forget for Decoded<S, PREFIX>
impl<S, const PREFIX: usize> Freeze for Decoded<S, PREFIX>where
S: Freeze,
impl<S, const PREFIX: usize> RefUnwindSafe for Decoded<S, PREFIX>where
S: RefUnwindSafe,
impl<S, const PREFIX: usize> Send for Decoded<S, PREFIX>where
S: Send,
impl<S, const PREFIX: usize> Sync for Decoded<S, PREFIX>where
S: Sync,
impl<S, const PREFIX: usize> Unpin for Decoded<S, PREFIX>where
S: Unpin,
impl<S, const PREFIX: usize> UnsafeUnpin for Decoded<S, PREFIX>where
S: UnsafeUnpin,
impl<S, const PREFIX: usize> UnwindSafe for Decoded<S, PREFIX>where
S: UnwindSafe,
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