pub struct XrefRequest<'a> {
pub fromdoc: &'a str,
pub refdoc: &'a str,
pub reftype: &'a str,
pub reftarget: &'a str,
pub refexplicit: bool,
pub program: Option<&'a str>,
pub contnode_text: &'a str,
}Expand description
One pending_xref to resolve — the attributes Sphinx’s resolvers read
off the node.
Fields§
§fromdoc: &'a strThe document being resolved (Sphinx’s fromdocname).
refdoc: &'a strpending_xref['refdoc']: the document the reference was written
in, which is what a relative :doc: target resolves against. Equal
to fromdoc unless the node was copied in from an include.
reftype: &'a str§reftarget: &'a str§refexplicit: bool§program: Option<&'a str>pending_xref['std:program']: the .. program:: in scope where the
:option: reference was written.
contnode_text: &'a strcontnode.astext() — the text the parse layer put in the reference.
Trait Implementations§
Source§impl<'a> Clone for XrefRequest<'a>
impl<'a> Clone for XrefRequest<'a>
Source§fn clone(&self) -> XrefRequest<'a>
fn clone(&self) -> XrefRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for XrefRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for XrefRequest<'a>
impl<'a> RefUnwindSafe for XrefRequest<'a>
impl<'a> Send for XrefRequest<'a>
impl<'a> Sync for XrefRequest<'a>
impl<'a> Unpin for XrefRequest<'a>
impl<'a> UnsafeUnpin for XrefRequest<'a>
impl<'a> UnwindSafe for XrefRequest<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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