pub struct NumberScan;Expand description
RAII marker for a number/dimension/glue scan (see NUMBER_SCAN_DEPTH).
Every ?-return and every unwind past a reader runs the drop, so the
depth is back to what it was the moment the scan ends. The eTeX expression
evaluator (etex.rs) takes one too, for its own inter-operand reads
(etex.ch scan_expr treats a tab/row end the same).
Implementations§
Source§impl NumberScan
impl NumberScan
pub fn begin() -> Self
Sourcepub fn suspend() -> NumberScanSuspended
pub fn suspend() -> NumberScanSuspended
TeX never digests inside scan_int, but a binding can: calc’s
\widthof measures its box while \makebox[…]’s width is being
scanned. The digestion is no part of the scan, so its own reads are at
depth 0 (its alignment tabs act, its peeking macros peek) until the
returned guard drops and gives the scan its depth back. Taken by the
stomach’s digestion entries (stomach::digest, digest_next_body).
Trait Implementations§
Source§impl Drop for NumberScan
impl Drop for NumberScan
Auto Trait Implementations§
impl Freeze for NumberScan
impl RefUnwindSafe for NumberScan
impl Send for NumberScan
impl Sync for NumberScan
impl Unpin for NumberScan
impl UnsafeUnpin for NumberScan
impl UnwindSafe for NumberScan
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