pub struct TokenSource<N, D, G> { /* private fields */ }Expand description
Independently retained original XML token source. There are no internal borrowed pointers, re-encoding, copied parser or reset source ceilings.
Implementations§
Source§impl<N: Copy, D: Copy, G: Copy> TokenSource<N, D, G>
impl<N: Copy, D: Copy, G: Copy> TokenSource<N, D, G>
Sourcepub fn declaration(&self) -> EncodingDeclaration
pub fn declaration(&self) -> EncodingDeclaration
Original absent or explicit XML Encoding declaration.
Sourcepub fn encoding_conformance(&self) -> &EncodingConformance
pub fn encoding_conformance(&self) -> &EncodingConformance
Separate envelope declaration result. No resource refusal is retained here: it terminates the complete pool before the visitor is called.
Sourcepub fn location(&self) -> Location<N, D, G>
pub fn location(&self) -> Location<N, D, G>
Actual original token enclosure and source generation.
Sourcepub fn property(&self) -> N
pub fn property(&self) -> N
Original timestamp property, separately from its encoded token element.
Sourcepub fn stamp_index(&self) -> usize
pub fn stamp_index(&self) -> usize
Ordinal in the frozen property set: prepared root properties followed by child properties in original depth-first counter order.
Sourcepub fn token_index(&self) -> usize
pub fn token_index(&self) -> usize
Original token ordinal within that timestamp property.
Auto Trait Implementations§
impl<N, D, G> !Freeze for TokenSource<N, D, G>
impl<N, D, G> !RefUnwindSafe for TokenSource<N, D, G>
impl<N, D, G> !Sync for TokenSource<N, D, G>
impl<N, D, G> Forget for TokenSource<N, D, G>
impl<N, D, G> Send for TokenSource<N, D, G>
impl<N, D, G> Unpin for TokenSource<N, D, G>
impl<N, D, G> UnsafeUnpin for TokenSource<N, D, G>
impl<N, D, G> UnwindSafe for TokenSource<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