pub struct GutterContext {
pub index: usize,
pub total_lines: usize,
pub soft: bool,
}Expand description
GutterContext provides context to a GutterFunc.
Fields§
§index: usizeIndex is the line index of the line which the gutter is being rendered for.
total_lines: usizeTotalLines is the total number of lines in the viewport.
soft: boolSoft is whether or not the line is soft wrapped.
Trait Implementations§
Source§impl Clone for GutterContext
impl Clone for GutterContext
Source§fn clone(&self) -> GutterContext
fn clone(&self) -> GutterContext
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 moreimpl Copy for GutterContext
Auto Trait Implementations§
impl Freeze for GutterContext
impl RefUnwindSafe for GutterContext
impl Send for GutterContext
impl Sync for GutterContext
impl Unpin for GutterContext
impl UnsafeUnpin for GutterContext
impl UnwindSafe for GutterContext
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