pub enum Source<'a> {
Document,
Carried {
map: &'a Fragments,
parent: &'a Source<'a>,
},
Plaintext {
ciphertext: Span,
parent: &'a Source<'a>,
},
}Expand description
Scoped coordinates for callback views. Joins map to their enclosing source; decrypted bytes have their own coordinate space, never invented physical offsets. A caller can retain/project known locations while the scope is live.
Variants§
Document
Original PFX document coordinates.
Carried
Logical carried bytes with their exact original fragment mapping.
Fields
Plaintext
New plaintext coordinates starting at zero, without a bytewise map to ciphertext (encryption is not a source-offset-preserving transformation).
Auto Trait Implementations§
impl<'a> Freeze for Source<'a>
impl<'a> RefUnwindSafe for Source<'a>
impl<'a> Send for Source<'a>
impl<'a> Sync for Source<'a>
impl<'a> Unpin for Source<'a>
impl<'a> UnsafeUnpin for Source<'a>
impl<'a> UnwindSafe for Source<'a>
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