pub struct TokenView<'source, N, D, G> { /* private fields */ }Expand description
All sources are frozen before any parsed token borrows them. Both slices have identical ordinals; no successfully parsed prefix is returned on failure.
Implementations§
Source§impl<'source, N: Copy, D: Copy, G: Copy> TokenView<'source, N, D, G>
impl<'source, N: Copy, D: Copy, G: Copy> TokenView<'source, N, D, G>
Sourcepub fn material_in<'query>(
&self,
operation: &Reader<'query>,
) -> Result<CarriedMaterial<'query, N, D, G>, CarriedError<N, D, G>>where
'source: 'query,
pub fn material_in<'query>(
&self,
operation: &Reader<'query>,
) -> Result<CarriedMaterial<'query, N, D, G>, CarriedError<N, D, G>>where
'source: 'query,
Decodes all known revocation choices before returning any catalogue. A partial result is dropped on failure; original source buffers remain intact. Current operation and original source ceilings both govern every shared decoder. No acquisition, crypto, actor selection or B-level claim.
Source§impl<'source, N, D, G> TokenView<'source, N, D, G>
impl<'source, N, D, G> TokenView<'source, N, D, G>
Sourcepub fn entry(&self, index: usize) -> Option<TokenEntry<'_, 'source, N, D, G>>
pub fn entry(&self, index: usize) -> Option<TokenEntry<'_, 'source, N, D, G>>
Select one original token pair in constant time. This is not a positive proof or a complete-token census; requirements still bind EVERY token.
Sourcepub fn sources(&self) -> &'source [TokenSource<N, D, G>]
pub fn sources(&self) -> &'source [TokenSource<N, D, G>]
Independent original source ownership for each corresponding reading.
Sourcepub fn readings(&self) -> &'source [TokenReading<'source>]
pub fn readings(&self) -> &'source [TokenReading<'source>]
All parsed tokens, preserving prepared-property and encapsulated-token order.
Auto Trait Implementations§
impl<'source, N, D, G> !RefUnwindSafe for TokenView<'source, N, D, G>
impl<'source, N, D, G> !Send for TokenView<'source, N, D, G>
impl<'source, N, D, G> !Sync for TokenView<'source, N, D, G>
impl<'source, N, D, G> !UnwindSafe for TokenView<'source, N, D, G>
impl<'source, N, D, G> Forget for TokenView<'source, N, D, G>
impl<'source, N, D, G> Freeze for TokenView<'source, N, D, G>
impl<'source, N, D, G> Unpin for TokenView<'source, N, D, G>
impl<'source, N, D, G> UnsafeUnpin for TokenView<'source, N, D, G>
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