pub struct LinkIndex { /* private fields */ }Expand description
Directed link graph across all wiki pages.
Implementations§
Source§impl LinkIndex
impl LinkIndex
Sourcepub fn build(wiki: &Wiki) -> Result<Self, WikiError>
pub fn build(wiki: &Wiki) -> Result<Self, WikiError>
Build the link index by scanning all wiki files.
pub fn inbound(&self, page: &PageId) -> Vec<&PageId>
pub fn outbound(&self, page: &PageId) -> &[WikilinkOccurrence]
pub fn orphans(&self, wiki: &Wiki) -> Vec<PageId>
pub fn all_edges(&self) -> Vec<(&PageId, &PageId)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkIndex
impl RefUnwindSafe for LinkIndex
impl Send for LinkIndex
impl Sync for LinkIndex
impl Unpin for LinkIndex
impl UnsafeUnpin for LinkIndex
impl UnwindSafe for LinkIndex
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