pub struct DrawerStyle {
pub background: Option<Color>,
pub border: Option<Color>,
pub border_width: Option<f32>,
pub radius: Option<f32>,
pub scrim: Option<Color>,
pub backdrop: Option<Backdrop>,
}Fields§
§background: Option<Color>§border: Option<Color>§border_width: Option<f32>§radius: Option<f32>§scrim: Option<Color>§backdrop: Option<Backdrop>Implementations§
Source§impl DrawerStyle
impl DrawerStyle
pub const fn new() -> Self
pub const fn background(self, color: Color) -> Self
pub const fn border(self, color: Color) -> Self
pub const fn border_width(self, width: f32) -> Self
pub const fn radius(self, radius: f32) -> Self
pub const fn scrim(self, color: Color) -> Self
pub const fn backdrop(self, backdrop: Backdrop) -> Self
Trait Implementations§
Source§impl Clone for DrawerStyle
impl Clone for DrawerStyle
impl Copy for DrawerStyle
Source§impl Debug for DrawerStyle
impl Debug for DrawerStyle
Source§impl Default for DrawerStyle
impl Default for DrawerStyle
Source§impl PartialEq for DrawerStyle
impl PartialEq for DrawerStyle
impl StructuralPartialEq for DrawerStyle
Auto Trait Implementations§
impl Freeze for DrawerStyle
impl RefUnwindSafe for DrawerStyle
impl Send for DrawerStyle
impl Sync for DrawerStyle
impl Unpin for DrawerStyle
impl UnsafeUnpin for DrawerStyle
impl UnwindSafe for DrawerStyle
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