pub enum XrefOutcome {
Resolved(ResolvedXref),
Kept {
warning: Option<String>,
},
Missing,
}Expand description
What resolution did with a reference. Sphinx expresses these three as
“returned a node” / “returned the contnode” / “returned None”: the
middle case still counts as resolved to the caller, which is why a
:numref: that gives up never also raises a dangling-reference warning.
Variants§
Resolved(ResolvedXref)
A reference node replaces the pending_xref.
Kept
The content node stays in place. warning is the diagnostic the
resolver logged on its way out (numref’s #10-#13), which carries no
type/subtype and so renders with no [category] suffix.
Missing
Nothing found: the caller decides whether this warrants a dangling-reference warning.
Trait Implementations§
Source§impl Debug for XrefOutcome
impl Debug for XrefOutcome
Source§impl PartialEq for XrefOutcome
impl PartialEq for XrefOutcome
impl StructuralPartialEq for XrefOutcome
Auto Trait Implementations§
impl Freeze for XrefOutcome
impl RefUnwindSafe for XrefOutcome
impl Send for XrefOutcome
impl Sync for XrefOutcome
impl Unpin for XrefOutcome
impl UnsafeUnpin for XrefOutcome
impl UnwindSafe for XrefOutcome
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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