Skip to main content

CopyProvidesRecord

Struct CopyProvidesRecord 

Source
pub struct CopyProvidesRecord {
    pub file: String,
    pub binding: String,
    pub overlay: FxHashMap<SymStr, Stored>,
    pub declined: FxHashSet<SymStr>,
    pub restored: FxHashMap<SymStr, Stored>,
    pub deferred: FxHashSet<SymStr>,
    pub title_page: Vec<Tokens>,
    pub maketitle: Option<Tokens>,
    pub loads_classes: Vec<String>,
    pub routed: bool,
}
Expand description

What note_copy_provides_assignment keeps for one stand-in’s copy: the copy’s file, its own definitions of names the binding owns (in force only inside its code), and the names and deferring seams logged.

Fields§

§file: String§binding: String

The stand-in binding the copy is read after (binding::content::read_stand_in_copy): a package that binding’s load loaded first is the copy’s own load (<file>:loaded_by_stand_in).

§overlay: FxHashMap<SymStr, Stored>§declined: FxHashSet<SymStr>§restored: FxHashMap<SymStr, Stored>

The meaning each declined name took back when the copy’s frame ended (leave_copy_provides_frame): the one its overlay stands beside, while still in force (copy_kept_meaning).

§deferred: FxHashSet<SymStr>§title_page: Vec<Tokens>

The copy’s own \maketitle/\@maketitle bodies, refused or overlaid as they may be (copy_provides_title_pages).

§maketitle: Option<Tokens>

The copy’s own last \maketitle body, one of Self::title_page (copy_provides_maketitle).

§loads_classes: Vec<String>

The classes the copy’s own code loaded (\LoadClass, and the classes loaded inside it: ClassLoadFrame): the real class has the names they define (copy_provides_text_default_clashes).

§routed: bool

Whether the copy’s \Provides line routed its request to the binding (OXIDIZED_DESIGN_DIVERGENCES #731 rule 12): the declared text names it defines stand (rule 14, routed_copy_text_name_yields).

Trait Implementations§

Source§

impl Debug for CopyProvidesRecord

Source§

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

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

impl Default for CopyProvidesRecord

Source§

fn default() -> Self

Returns the “default value” for a type. 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.