pub struct StyledRun {
pub span: Range<usize>,
pub style: Style,
}Expand description
A run of source bytes that share one style. Ranges are source byte offsets,
like the caret and crate::Highlight, so nothing has to be converted to
paint one.
Fields§
§span: Range<usize>The bytes this run covers, [start, end).
style: StyleWhat to paint them as.
Trait Implementations§
impl Eq for StyledRun
impl StructuralPartialEq for StyledRun
Auto Trait Implementations§
impl Freeze for StyledRun
impl RefUnwindSafe for StyledRun
impl Send for StyledRun
impl Sync for StyledRun
impl Unpin for StyledRun
impl UnsafeUnpin for StyledRun
impl UnwindSafe for StyledRun
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