pub struct LinkTargetPolicy { /* private fields */ }Expand description
Run-scoped document paths that filesystem-aware link rules should treat as present even when their content did not come from disk.
Implementations§
Source§impl LinkTargetPolicy
impl LinkTargetPolicy
Sourcepub fn open_world<I, P>(paths: I) -> Self
pub fn open_world<I, P>(paths: I) -> Self
Supplied documents override disk, while targets outside the supplied set continue to use normal filesystem resolution.
Sourcepub fn closed_world<I, P>(paths: I) -> Self
pub fn closed_world<I, P>(paths: I) -> Self
Only supplied documents are valid relative link targets.
pub fn contains(&self, path: &Path) -> bool
pub fn contains_with_markdown_extension(&self, path: &Path) -> bool
pub fn allow_disk_fallback(&self) -> bool
Trait Implementations§
Source§impl Clone for LinkTargetPolicy
impl Clone for LinkTargetPolicy
Source§fn clone(&self) -> LinkTargetPolicy
fn clone(&self) -> LinkTargetPolicy
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 moreAuto Trait Implementations§
impl Freeze for LinkTargetPolicy
impl RefUnwindSafe for LinkTargetPolicy
impl Send for LinkTargetPolicy
impl Sync for LinkTargetPolicy
impl Unpin for LinkTargetPolicy
impl UnsafeUnpin for LinkTargetPolicy
impl UnwindSafe for LinkTargetPolicy
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