pub struct LinkGraph { /* private fields */ }Expand description
Graph of internal links between posts
Implementations§
Source§impl LinkGraph
impl LinkGraph
Sourcepub fn backlinks_for(&self, url: &str) -> &[BacklinkInfo]
pub fn backlinks_for(&self, url: &str) -> &[BacklinkInfo]
Get backlinks for a given URL
Sourcepub fn to_graph_data(&self) -> GraphData
pub fn to_graph_data(&self) -> GraphData
Export full graph data for JSON visualization
Sourcepub fn local_graph_for(&self, url: &str) -> GraphData
pub fn local_graph_for(&self, url: &str) -> GraphData
Export graph data for a specific post (local neighborhood) Includes: the post itself, posts it links to, and posts that link to it
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkGraph
impl RefUnwindSafe for LinkGraph
impl Send for LinkGraph
impl Sync for LinkGraph
impl Unpin for LinkGraph
impl UnwindSafe for LinkGraph
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