pub struct HighlightSpan {
pub range: Range<usize>,
pub style: Style,
}Expand description
One styled byte range of a highlighted line.
Fields§
§range: Range<usize>Byte range within the line (the line’s text, without its \n).
style: StyleTrait Implementations§
Source§impl Clone for HighlightSpan
impl Clone for HighlightSpan
Source§impl Debug for HighlightSpan
impl Debug 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