[][src]Struct somedoc::model::inline::link::HyperLink

pub struct HyperLink { /* fields omitted */ }

Implementations

impl HyperLink[src]

pub fn external(target: &str) -> Self[src]

pub fn external_with_label(target: &str, alt_text: &str) -> Self[src]

pub fn external_with_label_and_title(
    target: &str,
    alt_text: &str,
    title: &str
) -> Self
[src]

pub fn internal(target: Anchor) -> Self[src]

pub fn internal_with_label(target: Anchor, alt_text: &str) -> Self[src]

pub fn internal_with_label_and_title(
    target: Anchor,
    alt_text: &str,
    title: &str
) -> Self
[src]

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

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

pub fn target(&self) -> &HyperLinkTarget[src]

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

pub fn alt_text(&self) -> &Option<String>[src]

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

pub fn title(&self) -> &Option<String>[src]

Trait Implementations

impl Clone for HyperLink[src]

impl Debug for HyperLink[src]

impl<'_> From<&'_ str> for HyperLink[src]

impl From<Anchor> for HyperLink[src]

impl From<HyperLink> for Image[src]

impl From<String> for HyperLink[src]

impl Into<InlineContent> for HyperLink[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> From<T> for T[src]

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

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.