pub struct HighlightFrameBuilder { /* private fields */ }Expand description
Builder for HighlightFrame.
Implementations§
Source§impl HighlightFrameBuilder
impl HighlightFrameBuilder
Sourcepub fn frame_id<VALUE: Into<FrameId>>(&mut self, value: VALUE) -> &mut Self
pub fn frame_id<VALUE: Into<FrameId>>(&mut self, value: VALUE) -> &mut Self
Identifier of the frame to highlight.
Sourcepub fn content_color<VALUE: Into<Rgba>>(&mut self, value: VALUE) -> &mut Self
pub fn content_color<VALUE: Into<Rgba>>(&mut self, value: VALUE) -> &mut Self
The content box highlight fill color (default: transparent).
Sourcepub fn content_outline_color<VALUE: Into<Rgba>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn content_outline_color<VALUE: Into<Rgba>>( &mut self, value: VALUE, ) -> &mut Self
The content box highlight outline color (default: transparent).
Sourcepub fn build(&self) -> Result<HighlightFrame, HighlightFrameBuilderError>
pub fn build(&self) -> Result<HighlightFrame, HighlightFrameBuilderError>
Trait Implementations§
Source§impl Clone for HighlightFrameBuilder
impl Clone for HighlightFrameBuilder
Source§fn clone(&self) -> HighlightFrameBuilder
fn clone(&self) -> HighlightFrameBuilder
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 HighlightFrameBuilder
impl RefUnwindSafe for HighlightFrameBuilder
impl Send for HighlightFrameBuilder
impl Sync for HighlightFrameBuilder
impl Unpin for HighlightFrameBuilder
impl UnsafeUnpin for HighlightFrameBuilder
impl UnwindSafe for HighlightFrameBuilder
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