Skip to main content

ClassLoadFrame

Struct ClassLoadFrame 

Source
pub struct ClassLoadFrame { /* private fields */ }
Expand description

RAII frame of one class load (binding::content::input_definitions, a .cls with its options handled: the \documentclass, a \LoadClass, a binding’s LoadClass!). While it is open, the macros assigned outside LaTeXML’s kernel layers — the class binding’s own (article.cls’s names, article_cls.rs), the raw file’s, a package’s it loads — and the names a lock kept from a definition it made are recorded as the class’s (State::class_loads), as its real file defines them; a repeat load records nothing new. A load a stand-in’s copy requests (copy: its own \LoadClass, or a class loaded while that one is open) also names the class among the copy’s base classes (CopyProvidesRecord::loads_classes), whose names its \newcommand finds defined (copy_provides_text_default_clashes): chained \LoadClass{mybase} over article (the reviewer’s probe nc_chain).

Implementations§

Source§

impl ClassLoadFrame

Source

pub fn enter(file: &str, copy: Option<u32>) -> Self

Open the frame of loading the class file, requested by the stand-in copy copy if any.

Trait Implementations§

Source§

impl Drop for ClassLoadFrame

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.