pub struct Style {
pub bg_color: Color,
pub border_color: Color,
pub border_width: u8,
}
Expand description
Collection of styling properties for a widget.
Fields§
§bg_color: Color
Background color of the widget.
border_color: Color
Border color of the widget.
border_width: u8
Border width in pixels.
Trait Implementations§
impl Copy for Style
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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