Skip to main content

TokenView

Struct TokenView 

Source
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>

Source

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>

Source

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.

Source

pub fn sources(&self) -> &'source [TokenSource<N, D, G>]

Independent original source ownership for each corresponding reading.

Source

pub fn readings(&self) -> &'source [TokenReading<'source>]

All parsed tokens, preserving prepared-property and encapsulated-token order.

Source§

impl<'source, N: Copy, D: Copy, G: Copy> TokenView<'source, N, D, G>

Source

pub fn snapshot(&self) -> Snapshot<D, G>

Original source generation, including an empty token-source set.

Source

pub fn signature(&self) -> N

Original XML signature whose unsigned properties contain these tokens.

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>
where &'source [TokenSource<N, D, G>]: Freeze, Snapshot<D, G>: Freeze, N: Freeze,

§

impl<'source, N, D, G> Unpin for TokenView<'source, N, D, G>
where &'source [TokenSource<N, D, G>]: Unpin, Snapshot<D, G>: Unpin, N: Unpin,

§

impl<'source, N, D, G> UnsafeUnpin for TokenView<'source, N, D, G>
where &'source [TokenSource<N, D, G>]: UnsafeUnpin, Snapshot<D, G>: UnsafeUnpin, N: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.