pub struct HighlightStyle {
pub color: Color,
pub opacity: f64,
}Expand description
Style configuration for highlight annotations.
Fields§
§color: ColorColor of the highlight (default: yellow)
opacity: f64Opacity of the highlight (0.0 = transparent, 1.0 = opaque; default: 0.5)
Implementations§
Source§impl HighlightStyle
impl HighlightStyle
Sourcepub fn with_color(self, color: Color) -> Self
pub fn with_color(self, color: Color) -> Self
Set the highlight color.
Sourcepub fn with_opacity(self, opacity: f64) -> Self
pub fn with_opacity(self, opacity: f64) -> Self
Set the highlight opacity.
Trait Implementations§
Source§impl Clone for HighlightStyle
impl Clone for HighlightStyle
Source§fn clone(&self) -> HighlightStyle
fn clone(&self) -> HighlightStyle
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 moreSource§impl Debug for HighlightStyle
impl Debug for HighlightStyle
Auto Trait Implementations§
impl Freeze for HighlightStyle
impl RefUnwindSafe for HighlightStyle
impl Send for HighlightStyle
impl Sync for HighlightStyle
impl Unpin for HighlightStyle
impl UnsafeUnpin for HighlightStyle
impl UnwindSafe for HighlightStyle
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