pub enum LatexDefinitionKind {
Macro,
Environment,
Declaration,
}Expand description
What a flm.pres.latex.definition node defines: a macro, an
environment, or a feature’s declaration.
Variants§
Macro
A macro: \providecommand\<name>[<n>]{<body>}, or \long\def where
the definition is written under the document’s own name
(is_bare), or
\ProvideDocumentCommand\<name>{+m …} — \DeclareDocumentCommand
under the document’s own name — where the definition is asked to be
robust (robust).
Environment
An environment:
\ProvideDocumentEnvironment{<name>}{+m …}{<begin>}{<end>}, or
\DeclareDocumentEnvironment where the definition is written under the
document’s own name.
Declaration
A declaration: LaTeX that makes something other than a command
definition — \newtheorem{lemma}[theorem]{Lemma}, \newcounter{…} —
written as \ifcsname <name>\endcsname\else <body>\fi, so that
it runs only where the control sequence \<name> is not defined yet.
A declaration defines no command of its own that a guard such as
\providecommand could test, so the definition gives the control
sequence it is guarded on (name):
the environment it declares (lemma tests \lemma), or the
counter’s register (c@theorem). Something of that name defined
before the style file is loaded (by the document class, a package or
the author’s own preamble) is kept, and the declaration does nothing.
It takes no argument, its whole text is its body slot, and it is
always written by a feature from its own configuration
(feature).
Implementations§
Trait Implementations§
Source§impl Clone for LatexDefinitionKind
impl Clone for LatexDefinitionKind
impl Copy for LatexDefinitionKind
Source§impl Debug for LatexDefinitionKind
impl Debug for LatexDefinitionKind
Source§impl Display for LatexDefinitionKind
impl Display for LatexDefinitionKind
impl Eq for LatexDefinitionKind
Source§impl Hash for LatexDefinitionKind
impl Hash for LatexDefinitionKind
Source§impl PartialEq for LatexDefinitionKind
impl PartialEq for LatexDefinitionKind
impl StructuralPartialEq for LatexDefinitionKind
Auto Trait Implementations§
impl Forget for LatexDefinitionKind
impl Freeze for LatexDefinitionKind
impl Move for LatexDefinitionKind
impl RefUnwindSafe for LatexDefinitionKind
impl Send for LatexDefinitionKind
impl Sync for LatexDefinitionKind
impl Unpin for LatexDefinitionKind
impl UnsafeUnpin for LatexDefinitionKind
impl UnwindSafe for LatexDefinitionKind
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