Skip to main content

Loc

Enum Loc 

Source
pub enum Loc {
Show 22 variants Cs(CsId), IntPar(u32), Count(u32), Attr(u32), DimenPar(u32), Dimen(u32), GluePar(u32), Skip(u32), MuSkip(u32), ToksPar(u32), Toks(u32), Box(u32), CurFont, MathFont(u32), ParShape, EtexShape(u32), Cat { table: u32, ch: u32, }, Code(CodeKind, u32), MathParam(u32), LocalBox(u32), DirPar(u32), LocalCount(u32),
}
Expand description

A location in the table of equivalents.

Variants§

§

Cs(CsId)

The meaning of a control sequence.

§

IntPar(u32)

An integer parameter (assign_int index).

§

Count(u32)

A \count register.

§

Attr(u32)

An \attribute register.

§

DimenPar(u32)

A dimension parameter (assign_dimen index).

§

Dimen(u32)

A \dimen register.

§

GluePar(u32)

A glue parameter (assign_glue index) or, offset by MU_GLUE_OFFSET, a muglue parameter.

§

Skip(u32)

A \skip register.

§

MuSkip(u32)

A \muskip register.

§

ToksPar(u32)

A token-list parameter (assign_toks index).

§

Toks(u32)

A \toks register.

§

Box(u32)

A \box register.

§

CurFont

The current font.

§

MathFont(u32)

A math font: size * NUM_FAMILIES + family (size 0 text, 1 script, 2 scriptscript).

§

ParShape

\parshape.

§

EtexShape(u32)

An e-TeX penalty array (set_etex_shape index).

§

Cat

A category code in catcode table table.

Fields

§table: u32

The catcode table number.

§ch: u32

The character.

§

Code(CodeKind, u32)

Another character code.

§

MathParam(u32)

A math parameter (\Umath…): param * 8 + style.

§

LocalBox(u32)

\localleftbox (0) or \localrightbox (1).

§

DirPar(u32)

A direction parameter (assign_dir index: \pagedir … \linedir).

§

LocalCount(u32)

LuaTeX’s group-local counters \nolocalwhatsits (0) and \nolocaldirs (1), seen only in tracing (see dirs).

Trait Implementations§

Source§

impl Clone for Loc

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Loc

Source§

impl Debug for Loc

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Loc

Source§

impl Hash for Loc

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Loc

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Loc

Auto Trait Implementations§

§

impl Freeze for Loc

§

impl RefUnwindSafe for Loc

§

impl Send for Loc

§

impl Sync for Loc

§

impl Unpin for Loc

§

impl UnsafeUnpin for Loc

§

impl UnwindSafe for Loc

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.