pub struct ContainerProps {
pub background: Option<Color>,
pub corner_radius: f64,
pub clips: bool,
pub role: Option<SurfaceRole>,
}Fields§
§background: Option<Color>§corner_radius: f64§clips: bool§role: Option<SurfaceRole>Semantic, THEME-ADAPTIVE surface — mapped by each backend to a native material that
follows the platform’s light/dark appearance automatically (unlike the fixed-RGBA
background, which it overrides when set).
Trait Implementations§
Source§impl Clone for ContainerProps
impl Clone for ContainerProps
Source§fn clone(&self) -> ContainerProps
fn clone(&self) -> ContainerProps
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 moreSource§impl Debug for ContainerProps
impl Debug for ContainerProps
Source§impl Default for ContainerProps
impl Default for ContainerProps
Source§fn default() -> ContainerProps
fn default() -> ContainerProps
Returns the “default value” for a type. Read more
Source§impl PartialEq for ContainerProps
impl PartialEq for ContainerProps
Source§fn eq(&self, other: &ContainerProps) -> bool
fn eq(&self, other: &ContainerProps) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContainerProps
Auto Trait Implementations§
impl Freeze for ContainerProps
impl RefUnwindSafe for ContainerProps
impl Send for ContainerProps
impl Sync for ContainerProps
impl Unpin for ContainerProps
impl UnsafeUnpin for ContainerProps
impl UnwindSafe for ContainerProps
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