Struct termcolor::HyperlinkSpec
source · pub struct HyperlinkSpec<'a> { /* private fields */ }
Expand description
A hyperlink specification.
Implementations§
source§impl<'a> HyperlinkSpec<'a>
impl<'a> HyperlinkSpec<'a>
sourcepub fn open(uri: &'a [u8]) -> HyperlinkSpec<'a>
pub fn open(uri: &'a [u8]) -> HyperlinkSpec<'a>
Creates a new hyperlink specification.
sourcepub fn close() -> HyperlinkSpec<'a>
pub fn close() -> HyperlinkSpec<'a>
Creates a hyperlink specification representing no hyperlink.
Trait Implementations§
source§impl<'a> Clone for HyperlinkSpec<'a>
impl<'a> Clone for HyperlinkSpec<'a>
source§fn clone(&self) -> HyperlinkSpec<'a>
fn clone(&self) -> HyperlinkSpec<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto 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> UnwindSafe for HyperlinkSpec<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)