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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

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

fn from(t: T) -> T

Returns the argument unchanged.

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(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<U> for HyperlinkSpec<'a> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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