pub enum LatexFlavor {
Document,
Package,
}Expand description
The LaTeX file flavor, fixing the lexer’s initial catcode regime. A
document (.tex) starts in the ordinary regime; a package or class
(.sty/.cls) is loaded under an implicit \makeatletter, so @ is a
letter from the first byte. A trailing explicit \makeatother still applies.
Variants§
Document
A .tex document: ordinary catcodes at the start.
Package
A .sty/.cls package or class: @ is a letter from the start.
Trait Implementations§
Source§impl Clone for LatexFlavor
impl Clone for LatexFlavor
Source§fn clone(&self) -> LatexFlavor
fn clone(&self) -> LatexFlavor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LatexFlavor
Source§impl Debug for LatexFlavor
impl Debug for LatexFlavor
Source§impl Default for LatexFlavor
impl Default for LatexFlavor
Source§fn default() -> LatexFlavor
fn default() -> LatexFlavor
Returns the “default value” for a type. Read more
impl Eq for LatexFlavor
Source§impl From<LatexFlavor> for LexConfig
impl From<LatexFlavor> for LexConfig
Source§fn from(flavor: LatexFlavor) -> Self
fn from(flavor: LatexFlavor) -> Self
A plain (non-.dtx) config of the given flavor — the common case, so a
bare LatexFlavor coerces into a LexConfig at call sites.
Source§impl PartialEq for LatexFlavor
impl PartialEq for LatexFlavor
impl StructuralPartialEq for LatexFlavor
Auto Trait Implementations§
impl Freeze for LatexFlavor
impl RefUnwindSafe for LatexFlavor
impl Send for LatexFlavor
impl Sync for LatexFlavor
impl Unpin for LatexFlavor
impl UnsafeUnpin for LatexFlavor
impl UnwindSafe for LatexFlavor
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