pub struct CodeMetrics {
pub line_height_px: f64,
}Expand description
How an editor’s rows are drawn, as the Renderer measured them.
Fields§
§line_height_px: f64The height of one row in physical pixels. Every row of an editor has this height,
so line n starts n times this far down when nothing is folded and no lens sits
above a line.
Trait Implementations§
Source§impl Clone for CodeMetrics
impl Clone for CodeMetrics
impl Copy for CodeMetrics
Source§impl Debug for CodeMetrics
impl Debug for CodeMetrics
Source§impl PartialEq for CodeMetrics
impl PartialEq for CodeMetrics
impl StructuralPartialEq for CodeMetrics
Auto Trait Implementations§
impl Forget for CodeMetrics
impl Freeze for CodeMetrics
impl Move for CodeMetrics
impl RefUnwindSafe for CodeMetrics
impl Send for CodeMetrics
impl Sync for CodeMetrics
impl Unpin for CodeMetrics
impl UnsafeUnpin for CodeMetrics
impl UnwindSafe for CodeMetrics
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