Skip to main content

SuppressedTabMarks

Struct SuppressedTabMarks 

Source
pub struct SuppressedTabMarks(/* private fields */);
Expand description

Disables tab marks for the lifetime of the guard, restoring the previous count on drop — what ltcmd does around every argument it reads: latex.ltx:2103-2110 (\__cmd_start:nNNnnn) opens \group_align_safe_begin: (closed at :2128), which raises align_state by the backquote-constant rule (tex.web §442), and physics.sty does it by hand around its fenced reads ({\ifnum\z@=}\fi, physics.sty:35/74/141). TeX's own macro_call(§389-399) does NOT disable tab marks — the{disable tab marks, etc.}ofalign_state:=1000000isread_toks, behind \read(tex.web §482) — so a plain macro's delimited argument holding an&inside an alignment errs in TeX too ("Argument of \… has an extra }"); arming this inParameters::read_argumentswould be unfaithful. For an ltcmd/physics reader, without it a&in a **delimiter-fenced** argument reaches the alignment as a cell break: for\mqty( b_0 &0 \ 0 &b_1 )(physics.sty, witness 2605.05903) the row splits mid-argument and the alignment then cannot close its own group —Error:unexpected:\lx@begin@alignment Attempt to close a group that switched to mode restricted_horizontal— truncating the rest of the document. The brace form\mqty{…}was always safe because cell scanning skips balanced groups;(…)is not a group. Perl raises the identical error (11 of them on the 14-line repro), so this is beyond-Perl andpdflatex`, which renders the repro silently, is the ground truth.

Only armed inside an alignment: outside one there are no tab marks to suppress, which keeps this off the hot path for every ordinary macro call. 28 papers of the 2026-07-29 bibliography-absence residual truncate here.

Implementations§

Trait Implementations§

Source§

impl Drop for SuppressedTabMarks

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.