pub struct EmptyTerm {
pub what: String,
}Expand description
The error that is reported when the term of a defterm environment or of
a \term command is empty (flm.defterm.empty-term).
The term of a defterm environment is its argument, as in
\begin{defterm}{Markov chain}. The term of a \term command is its
optional argument, as in \term[Markov chain]{such a process}, or its
mandatory argument when the optional argument is absent or empty, as in
\term{Markov chain}. A term counts as empty when it contains nothing but
whitespace and comments. The space commands ~ and \ count as content.
Reported on every backend by the lowering rule of the environment or of
the command, when the rule is invoked. A defterm environment with an
empty term is otherwise written as usual. A \term command with an empty
term expands to the text of its mandatory argument, marked as an
unresolved reference. On the latex-recomposed backend, the \term
command expands to \flmTerm with an empty label.
Fields§
§what: StringThe name of the environment or of the command whose term is empty:
defterm or \term.
Implementations§
Trait Implementations§
Source§impl DiagnosticInfo for EmptyTerm
impl DiagnosticInfo for EmptyTerm
Source§const IDENTIFIER: &'static str = "flm.defterm.empty-term"
const IDENTIFIER: &'static str = "flm.defterm.empty-term"
<crate-or-lang>.<area>.<condition>. Read moreSource§fn serializable_data(&self) -> DiagnosticValue
fn serializable_data(&self) -> DiagnosticValue
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
impl Eq for EmptyTerm
impl StructuralPartialEq for EmptyTerm
Auto Trait Implementations§
impl Forget for EmptyTerm
impl Freeze for EmptyTerm
impl Move for EmptyTerm
impl RefUnwindSafe for EmptyTerm
impl Send for EmptyTerm
impl Sync for EmptyTerm
impl Unpin for EmptyTerm
impl UnsafeUnpin for EmptyTerm
impl UnwindSafe for EmptyTerm
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<T> DiagnosticData for Twhere
T: DiagnosticInfo,
impl<T> DiagnosticData for Twhere
T: DiagnosticInfo,
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
DiagnosticInfo::identifier — for every
ordinary condition, the IDENTIFIER const).Source§fn serializable_data(&self) -> DiagnosticValue
fn serializable_data(&self) -> DiagnosticValue
DiagnosticInfo::serializable_data).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