pub struct Rect<'s> {
pub area: Area,
pub colors: CompoundStyle,
pub fill: bool,
pub border_style: &'s RectBorderStyle,
}
Expand description
A drawable rect, with various types of borders and an optional filling.
There may be more types of border in the future, if somebody asks for them
Fields§
§area: Area
§colors: CompoundStyle
§fill: bool
§border_style: &'s RectBorderStyle
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for Rect<'s>
impl<'s> RefUnwindSafe for Rect<'s>
impl<'s> Send for Rect<'s>
impl<'s> Sync for Rect<'s>
impl<'s> Unpin for Rect<'s>
impl<'s> UnwindSafe for Rect<'s>
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