pub struct CodeMark {
pub line: u64,
pub tone: Option<Tone>,
pub heat: Option<f64>,
pub ranges: Vec<[u64; 2]>,
pub wash: Vec<f64>,
}Expand description
A code line mark.
Fields§
§line: u64The line, in the gutter’s numbering.
tone: Option<Tone>The tone.
heat: Option<f64>A score 0–1 on the heat ramp: the overview’s bar, the fold sparkline,
and the row’s wash without wash; with no tone, no bar.
ranges: Vec<[u64; 2]>Character ranges [from, to) marked on the line.
wash: Vec<f64>Scores 0–1 washing the row on the heat ramp: one flat, several a
gradient across it, left to right; in place of heat’s wash.
Trait Implementations§
impl StructuralPartialEq for CodeMark
Auto Trait Implementations§
impl Freeze for CodeMark
impl RefUnwindSafe for CodeMark
impl Send for CodeMark
impl Sync for CodeMark
impl Unpin for CodeMark
impl UnsafeUnpin for CodeMark
impl UnwindSafe for CodeMark
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