pub struct UnknownKey {
pub construct: String,
pub key: String,
}Expand description
The error that is reported when the optional argument of a list or of an
\item contains an unknown key (flm.lists.unknown-key).
The optional argument of a list accepts the keys label and ref, as in
\begin{enumerate}[label=(#{alph}), ref=#{alph}]. Instead of key-value
pairs, it also accepts a short label form, as in \begin{enumerate}[(a)].
A short label form consists only of the characters []().:-+*aAiI1. A
label with other characters is given with the label key, as in
\begin{enumerate}[label={Step~#{arabic}:}]. An optional argument of a
list that contains no = and is not a short label form is reported as a
whole as an unknown key.
The optional argument of an \item accepts the key tag, as in
\item[tag={a=b}]. An argument that contains no = is the tag itself, as
in \item[Term].
Reported by the lowering rule of the list, on every backend. The unknown key is ignored, and the other keys of the argument are used.
Fields§
§construct: StringThe list environment’s name, or item.
key: StringThe unknown key, as written. When the whole argument is reported, this is the text of the whole argument.
Implementations§
Source§impl UnknownKey
impl UnknownKey
Trait Implementations§
Source§impl Clone for UnknownKey
impl Clone for UnknownKey
Source§impl Debug for UnknownKey
impl Debug for UnknownKey
Source§impl DiagnosticInfo for UnknownKey
impl DiagnosticInfo for UnknownKey
Source§const IDENTIFIER: &'static str = "flm.lists.unknown-key"
const IDENTIFIER: &'static str = "flm.lists.unknown-key"
<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
Source§impl Display for UnknownKey
impl Display for UnknownKey
impl Eq for UnknownKey
Source§impl PartialEq for UnknownKey
impl PartialEq for UnknownKey
impl StructuralPartialEq for UnknownKey
Auto Trait Implementations§
impl Forget for UnknownKey
impl Freeze for UnknownKey
impl Move for UnknownKey
impl RefUnwindSafe for UnknownKey
impl Send for UnknownKey
impl Sync for UnknownKey
impl Unpin for UnknownKey
impl UnsafeUnpin for UnknownKey
impl UnwindSafe for UnknownKey
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