pub enum CardVariant {
Elevated,
Filled,
Outlined,
}Expand description
Which of the three cards this is.
The reference has three, and they are not interchangeable: each says something different about how far the card should stand off what is behind it. This used to be one widget drawing a shadow and an outline, which is none of the three.
Variants§
Elevated
Lifted off the surface by a shadow, no outline. The default.
Filled
A flatter tonal surface: no shadow, no outline. For a card inside something already elevated, where a second shadow only adds noise.
Outlined
An outline and no shadow — the quietest of the three, and the one that survives on a background a shadow would be invisible against.
Trait Implementations§
Source§impl Clone for CardVariant
impl Clone for CardVariant
impl Copy for CardVariant
Source§impl Debug for CardVariant
impl Debug for CardVariant
Source§impl Default for CardVariant
impl Default for CardVariant
impl Eq for CardVariant
Source§impl PartialEq for CardVariant
impl PartialEq for CardVariant
impl StructuralPartialEq for CardVariant
Auto Trait Implementations§
impl Freeze for CardVariant
impl RefUnwindSafe for CardVariant
impl Send for CardVariant
impl Sync for CardVariant
impl Unpin for CardVariant
impl UnsafeUnpin for CardVariant
impl UnwindSafe for CardVariant
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