pub struct HighlightRectBuilder { /* private fields */ }Expand description
Builder for HighlightRect.
Implementations§
Source§impl HighlightRectBuilder
impl HighlightRectBuilder
Sourcepub fn color<VALUE: Into<Rgba>>(&mut self, value: VALUE) -> &mut Self
pub fn color<VALUE: Into<Rgba>>(&mut self, value: VALUE) -> &mut Self
The highlight fill color (default: transparent).
Sourcepub fn outline_color<VALUE: Into<Rgba>>(&mut self, value: VALUE) -> &mut Self
pub fn outline_color<VALUE: Into<Rgba>>(&mut self, value: VALUE) -> &mut Self
The highlight outline color (default: transparent).
Sourcepub fn build(&self) -> Result<HighlightRect, HighlightRectBuilderError>
pub fn build(&self) -> Result<HighlightRect, HighlightRectBuilderError>
Trait Implementations§
Source§impl Clone for HighlightRectBuilder
impl Clone for HighlightRectBuilder
Source§fn clone(&self) -> HighlightRectBuilder
fn clone(&self) -> HighlightRectBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HighlightRectBuilder
impl RefUnwindSafe for HighlightRectBuilder
impl Send for HighlightRectBuilder
impl Sync for HighlightRectBuilder
impl Unpin for HighlightRectBuilder
impl UnsafeUnpin for HighlightRectBuilder
impl UnwindSafe for HighlightRectBuilder
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