pub struct PyXrefTarget<'a> {
pub docname: &'a str,
pub node_id: &'a str,
pub reftitle: String,
pub is_module: bool,
}Expand description
A resolved py cross-reference: what the resolver needs to build the
reference node make_refnode / _make_module_refnode would.
Fields§
§docname: &'a str§node_id: &'a str§reftitle: Stringmake_refnode’s title: the matched fullname, or for modules
{name}[: {synopsis}][ (deprecated)][ ({platform})] — deprecated
BEFORE platform (_make_module_refnode, :1039-1054; probe: a
module with all three shows
both: Some synopsis. (deprecated) (Unix, Windows)).
is_module: boolA module target keeps the content node even when the pending_xref
carries pending_xref_condition children (:983-984 passes
contnode straight through).
Trait Implementations§
Source§impl<'a> Debug for PyXrefTarget<'a>
impl<'a> Debug for PyXrefTarget<'a>
Source§impl<'a> PartialEq for PyXrefTarget<'a>
impl<'a> PartialEq for PyXrefTarget<'a>
impl<'a> StructuralPartialEq for PyXrefTarget<'a>
Auto Trait Implementations§
impl<'a> Freeze for PyXrefTarget<'a>
impl<'a> RefUnwindSafe for PyXrefTarget<'a>
impl<'a> Send for PyXrefTarget<'a>
impl<'a> Sync for PyXrefTarget<'a>
impl<'a> Unpin for PyXrefTarget<'a>
impl<'a> UnsafeUnpin for PyXrefTarget<'a>
impl<'a> UnwindSafe for PyXrefTarget<'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> 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