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() -> DrawerStyle
pub const fn background(self, color: Color) -> DrawerStyle
pub const fn border(self, color: Color) -> DrawerStyle
pub const fn border_width(self, width: f32) -> DrawerStyle
pub const fn radius(self, radius: f32) -> DrawerStyle
pub const fn scrim(self, color: Color) -> DrawerStyle
pub const fn backdrop(self, backdrop: Backdrop) -> DrawerStyle
Trait Implementations§
Source§impl Clone for DrawerStyle
impl Clone for DrawerStyle
Source§fn clone(&self) -> DrawerStyle
fn clone(&self) -> DrawerStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DrawerStyle
Source§impl Debug for DrawerStyle
impl Debug for DrawerStyle
Source§impl Default for DrawerStyle
impl Default for DrawerStyle
Source§fn default() -> DrawerStyle
fn default() -> DrawerStyle
Returns the “default value” for a type. Read more
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