[−][src]Struct somedoc::model::inline::link::HyperLink
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]
target: &str,
alt_text: &str,
title: &str
) -> Self
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]
target: Anchor,
alt_text: &str,
title: &str
) -> Self
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]
fn into(self) -> InlineContent
[src]
Auto Trait Implementations
impl RefUnwindSafe for HyperLink
impl Send for HyperLink
impl Sync for HyperLink
impl Unpin for HyperLink
impl UnwindSafe for HyperLink
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,