pub struct HighlightRectBuilder { /* private fields */ }Implementations§
Source§impl HighlightRectBuilder
impl HighlightRectBuilder
pub fn x(self, x: impl Into<i64>) -> Self
pub fn y(self, y: impl Into<i64>) -> Self
pub fn width(self, width: impl Into<i64>) -> Self
pub fn height(self, height: impl Into<i64>) -> Self
pub fn color(self, color: impl Into<Rgba>) -> Self
pub fn outline_color(self, outline_color: impl Into<Rgba>) -> Self
pub fn build(self) -> Result<HighlightRect, String>
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 moreSource§impl Default for HighlightRectBuilder
impl Default for HighlightRectBuilder
Source§fn default() -> HighlightRectBuilder
fn default() -> HighlightRectBuilder
Returns the “default value” for a type. Read more
Auto 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