pub struct Link {
pub url: String,
pub params: String,
}Expand description
OSC 8 hyperlink target carried by a Style.
A link is used when styled text should also open a terminal hyperlink.
Style::link stores non-empty URLs behind an Arc so many cells in
the same hyperlink span can share one allocation. The URL and parameter
string are emitted verbatim as OSC 8 ; params ; url ST; callers are
responsible for passing values that are appropriate for the target
terminal.
Fields§
§url: StringTarget URI written into the OSC 8 sequence.
Empty URLs are not stored by Style::link; passing an empty URL to
that builder clears the current link instead.
params: StringOSC 8 parameter string written between the two semicolons.
Use an empty string for no parameters, or terminal-supported
key=value pairs such as id=section.
Trait Implementations§
impl Eq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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