pub struct Declared { /* private fields */ }Expand description
What the style file must declare because of the text escaped so far: the
characters written through under Declare mode, each with the spelling
to declare it with, and what the spellings written in either mode need in
the preamble.
One record accumulates across every text the emitter writes for one tree;
records of several trees are joined with merge. The
characters are in character order and the chunks in the order first
needed, and what the style file reads of the record
(packages, pieces) is sorted, so the
style file built from it is the same regardless of the order in which the
texts were escaped.
Implementations§
Source§impl Declared
impl Declared
Sourcepub fn chars(&self) -> &BTreeMap<char, String>
pub fn chars(&self) -> &BTreeMap<char, String>
The characters to declare, each with its spelling, in character
order. Empty unless Declare mode wrote a non-ASCII character that
has a spelling.
Sourcepub fn needs(&self) -> &PreambleNeeds
pub fn needs(&self) -> &PreambleNeeds
What the spellings written or declared need in the preamble, as the
Unicode-to-LaTeX table states it (PreambleNeeds). A user’s override
contributes nothing here: the user requests what it needs separately.
Sourcepub fn packages(&self) -> BTreeSet<Name>
pub fn packages(&self) -> BTreeSet<Name>
The package identifiers the escaped text needs, in identifier order:
one per chunk of needs that is a package
(packages::is_package_chunk), under the identifier
packages::chunk_package_id gives the chunk’s identifier, plus
packages::NEWUNICODECHAR whenever a character is declared, since
declaring one is what \newunicodechar is for.
Every identifier here resolves to the package definitions derived from
the chunk (packages::chunk_packages), one per set of engines the
chunk differs between, and the style file writes its \RequirePackage
lines from those definitions. A chunk that is declarations rather than
a package is a definition piece instead: see pieces.
Sourcepub fn pieces(&self) -> BTreeSet<Name>
pub fn pieces(&self) -> BTreeSet<Name>
The definition-piece identifiers the escaped text needs, in identifier
order: one per chunk of needs that is
declarations no package makes (packages::is_package_chunk),
under the identifier preamble::chunk_piece_id gives the chunk’s
identifier.
Every identifier here resolves to one of the family’s standard
definition pieces (preamble::chunk_pieces), which the style file
writes after its package requests, so that the packages the
declarations call into are already loaded.
Trait Implementations§
impl Eq for Declared
impl StructuralPartialEq for Declared
Auto Trait Implementations§
impl Forget for Declared
impl Freeze for Declared
impl Move for Declared
impl RefUnwindSafe for Declared
impl Send for Declared
impl Sync for Declared
impl Unpin for Declared
impl UnsafeUnpin for Declared
impl UnwindSafe for Declared
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more