pub struct Intersphinx {
pub data: IntersphinxData,
pub disabled_reftypes: BTreeSet<String>,
pub resolve_self: String,
}Expand description
The loaded inventories plus the two configuration values resolution consults.
Fields§
§data: IntersphinxData§disabled_reftypes: BTreeSet<String>intersphinx_disabled_reftypes, default ['std:doc'].
resolve_self: Stringintersphinx_resolve_self, default '' (disabled).
Implementations§
Source§impl Intersphinx
impl Intersphinx
pub fn is_empty(&self) -> bool
Sourcepub fn resolve_detect(
&self,
query: &XrefQuery<'_>,
diagnostics: &mut Vec<Diagnostic>,
) -> HookOutcome
pub fn resolve_detect( &self, query: &XrefQuery<'_>, diagnostics: &mut Vec<Diagnostic>, ) -> HookOutcome
resolve_reference_detect_inventory (_resolve.py:305-340) — what
the missing-reference event calls.
Tries the merged inventory with the target as written, then splits
the target on its first : into inv_name:target and retries inside
that named inventory. The prefixed form deliberately bypasses
intersphinx_disabled_reftypes.
Sourcepub fn resolve_in_inventory(
&self,
inv_name: &str,
query: &XrefQuery<'_>,
diagnostics: &mut Vec<Diagnostic>,
) -> Option<Resolution>
pub fn resolve_in_inventory( &self, inv_name: &str, query: &XrefQuery<'_>, diagnostics: &mut Vec<Diagnostic>, ) -> Option<Resolution>
resolve_reference_in_inventory (_resolve.py:258-277): an explicit
inventory never honours the disabled reftypes.
Sourcepub fn resolve_any(
&self,
honor_disabled: bool,
query: &XrefQuery<'_>,
diagnostics: &mut Vec<Diagnostic>,
) -> Option<Resolution>
pub fn resolve_any( &self, honor_disabled: bool, query: &XrefQuery<'_>, diagnostics: &mut Vec<Diagnostic>, ) -> Option<Resolution>
resolve_reference_any_inventory (_resolve.py:280-302).
Trait Implementations§
Source§impl Clone for Intersphinx
impl Clone for Intersphinx
Source§fn clone(&self) -> Intersphinx
fn clone(&self) -> Intersphinx
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 moreSource§impl Debug for Intersphinx
impl Debug for Intersphinx
Source§impl Default for Intersphinx
impl Default for Intersphinx
Source§fn default() -> Intersphinx
fn default() -> Intersphinx
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Intersphinx
impl RefUnwindSafe for Intersphinx
impl Send for Intersphinx
impl Sync for Intersphinx
impl Unpin for Intersphinx
impl UnsafeUnpin for Intersphinx
impl UnwindSafe for Intersphinx
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