pub struct Unresolved {
pub label: String,
}Expand description
The error that is reported when a reference refers to an undefined label
(flm.refs.unresolved). A label is defined when it is written for a
reference point of the document, or when it is listed in the external
index (EXTERNAL_INDEX) that the caller installed for the run.
Reported by the resolve stage (RESOLVE) at the reference, once for each
undefined label of the reference. The severity is an Error by default, and
a Warning under the render option unresolved: allow
(RefsRenderOptions). In a run that renders nothing, such as a run of
the check workflow, the severity is always a Warning.
The reference expands to its text without a link, marked as unresolved: a
\ref displays the label, and a \hyperref displays its text argument.
When the reference is part of content that another reference displays,
such as the title of a heading, it is reported again there.
Fields§
§label: StringThe label that the reference refers to.
Implementations§
Source§impl Unresolved
impl Unresolved
Sourcepub fn new(label: impl Into<String>) -> Self
pub fn new(label: impl Into<String>) -> Self
Creates a Unresolved condition.
Trait Implementations§
Source§impl Clone for Unresolved
impl Clone for Unresolved
Source§impl Debug for Unresolved
impl Debug for Unresolved
Source§impl DiagnosticInfo for Unresolved
impl DiagnosticInfo for Unresolved
Source§const IDENTIFIER: &'static str = "flm.refs.unresolved"
const IDENTIFIER: &'static str = "flm.refs.unresolved"
<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 Unresolved
impl Display for Unresolved
impl Eq for Unresolved
Source§impl PartialEq for Unresolved
impl PartialEq for Unresolved
impl StructuralPartialEq for Unresolved
Auto Trait Implementations§
impl Forget for Unresolved
impl Freeze for Unresolved
impl Move for Unresolved
impl RefUnwindSafe for Unresolved
impl Send for Unresolvedwhere
RawVecInner: Send,
impl Sync for Unresolvedwhere
RawVecInner: Sync,
impl Unpin for Unresolved
impl UnsafeUnpin for Unresolved
impl UnwindSafe for Unresolvedwhere
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