[][src]Struct vimwiki::lang::components::WikiLink

pub struct WikiLink {
    pub path: PathBuf,
    pub description: Option<Description>,
    pub anchor: Option<Anchor>,
}

Represents a link to a file or directory in the active wiki

Fields

path: PathBufdescription: Option<Description>anchor: Option<Anchor>

Implementations

impl WikiLink[src]

pub fn new(
    path: PathBuf,
    description: Option<Description>,
    anchor: Option<Anchor>
) -> WikiLink
[src]

impl WikiLink[src]

pub fn is_local_anchor(&self) -> bool[src]

Whether or not the link is representing an anchor to the current page

pub fn is_path_dir(&self) -> bool[src]

Checks if the link's path is to a directory without actually evaluating in the filesystem. Only checks if the path appears as that of a directory

Trait Implementations

impl Clone for WikiLink[src]

impl Debug for WikiLink[src]

impl Default for WikiLink[src]

impl<'de> Deserialize<'de> for WikiLink[src]

impl Eq for WikiLink[src]

impl From<PathBuf> for WikiLink[src]

impl From<String> for WikiLink[src]

impl From<WikiLink> for Link[src]

impl Hash for WikiLink[src]

impl PartialEq<WikiLink> for WikiLink[src]

impl Serialize for WikiLink[src]

impl StructuralEq for WikiLink[src]

impl StructuralPartialEq for WikiLink[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.