pub struct NumberReadAsCharacters {
pub key: String,
pub template: String,
}Expand description
The error that is reported on the latex-recomposed backend when the label
template or the reference template of a list contains a number format
inside content that is read as characters, such as verbatim content (id
flm.lists.number-read-as-characters).
A command reads its content as characters when it uses the characters as
they are written instead of typesetting them. This is the case, for
instance, for verbatim content, for the address of a link and for the label
in a \ref. The recomposed LaTeX writes a number format as a command of
LaTeX’s enumitem package, which LaTeX expands each time it sets a label.
The characters of such content, however, are needed when the recomposed
LaTeX is generated, before any number exists. The other backends write the
number themselves and report nothing.
Reported by the rule ListLatexRule, once
for each key. The key is left out of the recomposed LaTeX, as for
NoEnumitemFormat.
Fields§
§key: StringThe key of the template: label for the label template, also when it
is given as a short label form, or ref for the reference template.
template: StringThe 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 NumberReadAsCharacters
impl Clone for NumberReadAsCharacters
Source§impl Debug for NumberReadAsCharacters
impl Debug for NumberReadAsCharacters
Source§impl DiagnosticInfo for NumberReadAsCharacters
impl DiagnosticInfo for NumberReadAsCharacters
Source§const IDENTIFIER: &'static str = "flm.lists.number-read-as-characters"
const IDENTIFIER: &'static str = "flm.lists.number-read-as-characters"
<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 NumberReadAsCharacters
impl Display for NumberReadAsCharacters
impl Eq for NumberReadAsCharacters
Source§impl PartialEq for NumberReadAsCharacters
impl PartialEq for NumberReadAsCharacters
impl StructuralPartialEq for NumberReadAsCharacters
Auto Trait Implementations§
impl Forget for NumberReadAsCharacters
impl Freeze for NumberReadAsCharacters
impl Move for NumberReadAsCharacters
impl RefUnwindSafe for NumberReadAsCharacters
impl Send for NumberReadAsCharacters
impl Sync for NumberReadAsCharacters
impl Unpin for NumberReadAsCharacters
impl UnsafeUnpin for NumberReadAsCharacters
impl UnwindSafe for NumberReadAsCharacters
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