pub struct HighlightSpan {
pub range: Range<u32>,
pub style: SpanStyle,
}Expand description
One styled run within a single buffer line. range is bytes within the
line (not document offsets), so it survives line-local repair and drops
straight onto a display chunk; byte→cell conversion happens only at render.
Fields§
§range: Range<u32>Byte range within the line.
style: SpanStyleThe run’s resolved style.
Trait Implementations§
Source§impl Clone for HighlightSpan
impl Clone for HighlightSpan
Source§fn clone(&self) -> HighlightSpan
fn clone(&self) -> HighlightSpan
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 HighlightSpan
impl Debug for HighlightSpan
impl Eq for HighlightSpan
Source§impl PartialEq for HighlightSpan
impl PartialEq for HighlightSpan
impl StructuralPartialEq for HighlightSpan
Auto Trait Implementations§
impl Freeze for HighlightSpan
impl RefUnwindSafe for HighlightSpan
impl Send for HighlightSpan
impl Sync for HighlightSpan
impl Unpin for HighlightSpan
impl UnsafeUnpin for HighlightSpan
impl UnwindSafe for HighlightSpan
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.