pub struct Decoded<'source> {
pub parser: &'source Parser,
pub bytes: &'source [u8],
pub base: u64,
pub depth: u32,
}Expand description
The actual scoped decoded source and its original ASN.1 provenance. These borrows cannot escape the higher-ranked visitor. A fresh decoded document has base zero and reader depth zero; neither is a physical XML offset.
Fields§
§parser: &'source ParserProducing session for this actual source, with explicit owner limits.
bytes: &'source [u8]Original decoded source window, without re-encoding or an extra copy.
base: u64Source-window offset in this decoded document.
depth: u32Actual source-reader ASN.1 depth, independent of XML depth; fresh roots use zero.
Trait Implementations§
Auto Trait Implementations§
impl<'source> !RefUnwindSafe for Decoded<'source>
impl<'source> !Send for Decoded<'source>
impl<'source> !Sync for Decoded<'source>
impl<'source> !UnwindSafe for Decoded<'source>
impl<'source> Forget for Decoded<'source>
impl<'source> Freeze for Decoded<'source>
impl<'source> Unpin for Decoded<'source>
impl<'source> UnsafeUnpin for Decoded<'source>
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