Struct editor2::HighlightedRange
source · pub struct HighlightedRange {
pub start_y: Pixels,
pub line_height: Pixels,
pub lines: Vec<HighlightedRangeLine>,
pub color: Hsla,
pub corner_radius: Pixels,
}
Fields§
§start_y: Pixels
§line_height: Pixels
§lines: Vec<HighlightedRangeLine>
§color: Hsla
§corner_radius: Pixels
Implementations§
source§impl HighlightedRange
impl HighlightedRange
pub fn paint(&self, bounds: Bounds<Pixels>, cx: &mut WindowContext<'_>)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for HighlightedRange
impl Send for HighlightedRange
impl Sync for HighlightedRange
impl Unpin for HighlightedRange
impl UnwindSafe for HighlightedRange
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