pub struct Link {
pub range: Range<usize>,
pub command: Command,
}
Expand description
A clickable range of text with an associated Command
.
Fields§
§range: Range<usize>
The range of text for the link.
command: Command
A Command
representing the link’s payload.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Link
impl !Send for Link
impl !Sync for Link
impl Unpin for Link
impl !UnwindSafe for Link
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.