pub struct BadLabelArgument {
pub kind: String,
pub found: String,
}Expand description
The error that is reported when the optional argument of an xnote contains
something other than \label commands (id flm.xnotes.bad-label-argument).
The optional argument of an xnote contains the labels of the xnote, as in
\footnote[\label{fn:a}]{…}. This argument may contain only \label{…}
commands, whitespace (including ~ and \ ) and comments.
Reported by the lowering rule of the xnote when it is invoked. The error is
reported once for each xnote, for the first node of the argument that does
not meet this requirement. All content of the argument other than the
\label commands is ignored, and these \label commands still label the
xnote.
In a registry without the references feature, the \label command is not
defined, and a \label command in the optional argument is reported in the
same way.
Fields§
§kind: StringThe name of the xnote kind, e.g. footnote.
found: StringThe source text of the first node of the optional argument that is not
a \label command, whitespace or a comment. The text is trimmed and
cut after 40 characters.
Implementations§
Trait Implementations§
Source§impl Clone for BadLabelArgument
impl Clone for BadLabelArgument
Source§impl Debug for BadLabelArgument
impl Debug for BadLabelArgument
Source§impl DiagnosticInfo for BadLabelArgument
impl DiagnosticInfo for BadLabelArgument
Source§const IDENTIFIER: &'static str = "flm.xnotes.bad-label-argument"
const IDENTIFIER: &'static str = "flm.xnotes.bad-label-argument"
<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 BadLabelArgument
impl Display for BadLabelArgument
impl Eq for BadLabelArgument
Source§impl PartialEq for BadLabelArgument
impl PartialEq for BadLabelArgument
impl StructuralPartialEq for BadLabelArgument
Auto Trait Implementations§
impl Forget for BadLabelArgument
impl Freeze for BadLabelArgument
impl Move for BadLabelArgument
impl RefUnwindSafe for BadLabelArgument
impl Send for BadLabelArgumentwhere
RawVecInner: Send,
impl Sync for BadLabelArgumentwhere
RawVecInner: Sync,
impl Unpin for BadLabelArgument
impl UnsafeUnpin for BadLabelArgument
impl UnwindSafe for BadLabelArgumentwhere
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