Struct texlang::vm::UnexpandedStream
source · 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_or(&mut self) -> Result<Option<Token>>
fn next_or(&mut self) -> Result<Option<Token>>
Gets the next token in the stream or
Ok(None)
if the stream is exhausted.source§fn next<E: EndOfInputError>(&mut self, err: E) -> Result<Token>
fn next<E: EndOfInputError>(&mut self, err: E) -> Result<Token>
Gets the next token in the stream or error if the stream is exhausted. Read more
fn peek(&mut self) -> Result<Option<Token>>
source§fn commands_map(&self) -> &Map<Self::S>
fn commands_map(&self) -> &Map<Self::S>
Returns a reference to the commands map.
Auto Trait Implementations§
impl<S> !Freeze for UnexpandedStream<S>
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