Struct texlang::vm::UnexpandedStream
source · #[repr(transparent)]pub struct UnexpandedStream<S>(/* private fields */);
Expand description
Stream that returns input tokens without performing expansion.
The unexpanded stream is used when reading tokens without performing expansion;
e.g., when reading the replacement text for a macro defined using \def
.
It be obtained from either the ExecutionInput or the ExpansionInput using the ExpandedStream trait methods.
Trait Implementations§
source§impl<S: TexlangState> TokenStream for UnexpandedStream<S>
impl<S: TexlangState> TokenStream for UnexpandedStream<S>
source§fn next(&mut self) -> Result<Option<Token>, Box<Error>>
fn next(&mut self) -> Result<Option<Token>, Box<Error>>
Gets the next token in the stream. Read more
source§fn peek(&mut self) -> Result<Option<&Token>, Box<Error>>
fn peek(&mut self) -> Result<Option<&Token>, Box<Error>>
Peeks at the next token in the stream without removing it. Read more
source§fn consume(&mut self) -> Result<(), Box<Error>>
fn consume(&mut self) -> Result<(), Box<Error>>
Consumes the next token in the stream without returning it. Read more
source§fn commands_map(&self) -> &Map<Self::S>
fn commands_map(&self) -> &Map<Self::S>
Returns a reference to the commands map.
fn trace(&self, token: Token) -> SourceCodeTrace
fn trace_end_of_input(&self) -> SourceCodeTrace
Auto Trait Implementations§
impl<S> !RefUnwindSafe for UnexpandedStream<S>
impl<S> !Send for UnexpandedStream<S>
impl<S> !Sync for UnexpandedStream<S>
impl<S> Unpin for UnexpandedStream<S>where S: Unpin,
impl<S> UnwindSafe for UnexpandedStream<S>where S: UnwindSafe,
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