pub struct NothingToShow {
pub label: String,
}Expand description
The error that is reported when a reference refers to a reference point
that has neither a number nor content to display (id
flm.refs.nothing-to-show).
A \ref displays the number of its target, or, for a target without a
number, the content of the target, such as the title of a heading. Some
targets have neither, for instance an unnumbered figure without a caption,
or an equation in a registry without the numbering feature.
Reported by the lowering rule of \ref when it is invoked, once for each
such target. The other commands that display a reference through
lower_reference, such as \eqref, report it in
the same way. The reference displays the label as written, with a link to
the target.
Fields§
§label: StringThe label of the target, as written in the reference.
Implementations§
Source§impl NothingToShow
impl NothingToShow
Sourcepub fn new(label: impl Into<String>) -> Self
pub fn new(label: impl Into<String>) -> Self
Creates a NothingToShow condition.
Trait Implementations§
Source§impl Clone for NothingToShow
impl Clone for NothingToShow
Source§impl Debug for NothingToShow
impl Debug for NothingToShow
Source§impl DiagnosticInfo for NothingToShow
impl DiagnosticInfo for NothingToShow
Source§const IDENTIFIER: &'static str = "flm.refs.nothing-to-show"
const IDENTIFIER: &'static str = "flm.refs.nothing-to-show"
<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 NothingToShow
impl Display for NothingToShow
impl Eq for NothingToShow
Source§impl PartialEq for NothingToShow
impl PartialEq for NothingToShow
impl StructuralPartialEq for NothingToShow
Auto Trait Implementations§
impl Forget for NothingToShow
impl Freeze for NothingToShow
impl Move for NothingToShow
impl RefUnwindSafe for NothingToShow
impl Send for NothingToShow
impl Sync for NothingToShow
impl Unpin for NothingToShow
impl UnsafeUnpin for NothingToShow
impl UnwindSafe for NothingToShow
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