Struct HyperlinkSpec

struct HyperlinkSpec<'a> { ... }

A hyperlink specification.

Implementations

impl<'a> HyperlinkSpec<'a>

fn open(uri: &'a [u8]) -> HyperlinkSpec<'a>

Creates a new hyperlink specification.

fn close() -> HyperlinkSpec<'a>

Creates a hyperlink specification representing no hyperlink.

fn uri(self: &Self) -> Option<&'a [u8]>

Returns the URI of the hyperlink if one is attached to this spec.

impl<'a> Clone for HyperlinkSpec<'a>

fn clone(self: &Self) -> HyperlinkSpec<'a>

impl<'a> Debug for HyperlinkSpec<'a>

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl<'a> Freeze for HyperlinkSpec<'a>

impl<'a> RefUnwindSafe for HyperlinkSpec<'a>

impl<'a> Send for HyperlinkSpec<'a>

impl<'a> Sync for HyperlinkSpec<'a>

impl<'a> Unpin for HyperlinkSpec<'a>

impl<'a> UnwindSafe for HyperlinkSpec<'a>

impl<T> Any for HyperlinkSpec<'a>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for HyperlinkSpec<'a>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for HyperlinkSpec<'a>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for HyperlinkSpec<'a>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for HyperlinkSpec<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for HyperlinkSpec<'a>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for HyperlinkSpec<'a>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for HyperlinkSpec<'a>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for HyperlinkSpec<'a>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>