pub struct InlineCode {
pub line: usize,
pub start: usize,
pub end: usize,
pub text: String,
}Expand description
PU.1b-2b: build the per-line Style::Link spans for links with NO
grammar base — the link-only overlay the host seeds into a help
buffer’s ExtraHighlights local so the cells-worker DisplayMatrix
carries link styling (the grammar can’t: the [label](url) markup is
stripped before it parses, so it never emits a Link capture). Same
per-line logic as [overlay_link_styles], just onto an empty base.
One inline `code` span found in a help buffer’s text.
line / start / end are a byte range on that line, covering the
backticks as well as the text between them, so a renderer styles the
whole literal rather than leaving its delimiters in prose colour.
Fields§
§line: usize§start: usize§end: usize§text: StringThe text BETWEEN the backticks — what a classifier reads.
Trait Implementations§
Source§impl Clone for InlineCode
impl Clone for InlineCode
Source§fn clone(&self) -> InlineCode
fn clone(&self) -> InlineCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InlineCode
impl Debug for InlineCode
impl Eq for InlineCode
Source§impl PartialEq for InlineCode
impl PartialEq for InlineCode
impl StructuralPartialEq for InlineCode
Auto Trait Implementations§
impl Freeze for InlineCode
impl RefUnwindSafe for InlineCode
impl Send for InlineCode
impl Sync for InlineCode
impl Unpin for InlineCode
impl UnsafeUnpin for InlineCode
impl UnwindSafe for InlineCode
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more