pub struct LabelNamesNumber {
pub environment: String,
pub template: String,
}Expand description
The error that is reported when the label template of an unnumbered list
contains a number format (flm.lists.label-names-number).
The list kind of a list environment
determines whether the items of its lists are numbered
(ListKind::numbered). The label template of
a list cannot change this. The items of an unnumbered list, such as
itemize, have no number. The label template of such a list must
therefore be a fixed label, as in \begin{itemize}[label={--}] or
\begin{itemize}[*]. A number format is written as #{…} in a label
template, and as one of the characters a, A, i, I and 1 in a
short label form.
Reported by the lowering rule of the list, on every backend. The list then
uses the label template of its list kind for its nesting depth. On the
latex-recomposed backend, the key label is left out of the recomposed
LaTeX, and LaTeX uses its default label.
Fields§
§environment: StringThe list environment’s name.
template: StringThe label template. A short label form is given as the label template
that it stands for, e.g. (#{roman}) for (i).
Implementations§
Trait Implementations§
Source§impl Clone for LabelNamesNumber
impl Clone for LabelNamesNumber
Source§impl Debug for LabelNamesNumber
impl Debug for LabelNamesNumber
Source§impl DiagnosticInfo for LabelNamesNumber
impl DiagnosticInfo for LabelNamesNumber
Source§const IDENTIFIER: &'static str = "flm.lists.label-names-number"
const IDENTIFIER: &'static str = "flm.lists.label-names-number"
<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 LabelNamesNumber
impl Display for LabelNamesNumber
impl Eq for LabelNamesNumber
Source§impl PartialEq for LabelNamesNumber
impl PartialEq for LabelNamesNumber
impl StructuralPartialEq for LabelNamesNumber
Auto Trait Implementations§
impl Forget for LabelNamesNumber
impl Freeze for LabelNamesNumber
impl Move for LabelNamesNumber
impl RefUnwindSafe for LabelNamesNumber
impl Send for LabelNamesNumberwhere
RawVecInner: Send,
impl Sync for LabelNamesNumberwhere
RawVecInner: Sync,
impl Unpin for LabelNamesNumber
impl UnsafeUnpin for LabelNamesNumber
impl UnwindSafe for LabelNamesNumberwhere
RawVecInner: UnwindSafe,
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