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 — tex.web §394 macro_call:

align_state:=1000000; {disable tab marks, etc.}

TeX suppresses & and \cr while it scans a macro’s parameters, so a tab mark inside an argument is an ordinary token. Without that, 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 and pdflatex, 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.