pub struct ScannerStatusGuard { /* private fields */ }Expand description
Restores the enclosing ScannerStatus (and warning_index) when it
drops, on every exit path of the scan that set it, ? included.
The runaway argument (argument_runaway) is scoped the same way: a scan
starts without one, and the enclosing scan’s comes back when it ends.
Implementations§
Source§impl ScannerStatusGuard
impl ScannerStatusGuard
Sourcepub fn end_taking_runaway_argument(self) -> Option<Runaway>
pub fn end_taking_runaway_argument(self) -> Option<Runaway>
End the scan now and hand back the macro argument that ran off a file
inside it, if one did (argument_runaway): the tokens it had read,
for abandon_runaway_call. A macro_call abandons itself then
(tex.web §392; Expandable::read_call_arguments).
Trait Implementations§
Source§impl Drop for ScannerStatusGuard
impl Drop for ScannerStatusGuard
Auto Trait Implementations§
impl Freeze for ScannerStatusGuard
impl RefUnwindSafe for ScannerStatusGuard
impl Send for ScannerStatusGuard
impl Sync for ScannerStatusGuard
impl Unpin for ScannerStatusGuard
impl UnsafeUnpin for ScannerStatusGuard
impl UnwindSafe for ScannerStatusGuard
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