Struct HyperlinkSpec

pub struct HyperlinkSpec<'a> { /* private fields */ }

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) -> Option<&'a [u8]>

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

Trait Implementations

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

fn clone(&self) -> Self

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

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

Auto Trait Implementations

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> UnsafeUnpin for HyperlinkSpec<'a>

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

Blanket Implementations

impl<T> Any for HyperlinkSpec<'a> where T: 'static + ?Sized,

impl<T> Borrow<T> for HyperlinkSpec<'a> where T: ?Sized,

impl<T> BorrowMut<T> for HyperlinkSpec<'a> where T: ?Sized,

impl<T> CloneToUninit for HyperlinkSpec<'a> where T: Clone,

impl<T> From<T> for HyperlinkSpec<'a>

impl<T> ToOwned for HyperlinkSpec<'a> where T: Clone,

impl<T, U> Into<U> for HyperlinkSpec<'a> where U: From<T>,

impl<T, U> TryFrom<U> for HyperlinkSpec<'a> where U: Into<T>,

impl<T, U> TryInto<U> for HyperlinkSpec<'a> where U: TryFrom<T>,