pub struct ExtractedCrossFileLinks {
pub relative: Vec<CrossFileLinkIndex>,
pub root_relative: Vec<CrossFileLinkIndex>,
}Expand description
Markdown file links extracted from a document, split by how they resolve.
Linting rules only understand relative links (resolved against the source
file’s directory). root_relative links (leading /) are an LSP concept
resolved against the configured content roots, so they are kept separate to
avoid changing linting behavior.
Fields§
§relative: Vec<CrossFileLinkIndex>Links resolved relative to the source file’s directory.
root_relative: Vec<CrossFileLinkIndex>Root-relative links. target_path has the leading / stripped so it can
be joined directly to a content root. Parent-traversal and
protocol-relative (//host) links are excluded.
Trait Implementations§
Source§impl Debug for ExtractedCrossFileLinks
impl Debug for ExtractedCrossFileLinks
Source§impl Default for ExtractedCrossFileLinks
impl Default for ExtractedCrossFileLinks
Source§fn default() -> ExtractedCrossFileLinks
fn default() -> ExtractedCrossFileLinks
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExtractedCrossFileLinks
impl RefUnwindSafe for ExtractedCrossFileLinks
impl Send for ExtractedCrossFileLinks
impl Sync for ExtractedCrossFileLinks
impl Unpin for ExtractedCrossFileLinks
impl UnsafeUnpin for ExtractedCrossFileLinks
impl UnwindSafe for ExtractedCrossFileLinks
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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