#[repr(C)]pub enum Density {
Compact = 0,
Comfortable = 1,
Large = 2,
}Expand description
Global density. Comfortable ≈ the current (un-themed) look; Compact tightens spacing.
Large is for hurried / wet / gloved hands: bigger controls (56 buttons & segmented, 48 chips
& calendar days, 56 icon-button targets), 16 control labels, ≥ 12 between adjacent tappables.
Body text stays on the platform’s font-scale setting.
Variants§
Trait Implementations§
impl Copy for Density
Source§impl<'de> Deserialize<'de> for Density
impl<'de> Deserialize<'de> for Density
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Density, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Density, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Density
Source§impl Serialize for Density
impl Serialize for Density
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Density
Auto Trait Implementations§
impl Freeze for Density
impl RefUnwindSafe for Density
impl Send for Density
impl Sync for Density
impl Unpin for Density
impl UnsafeUnpin for Density
impl UnwindSafe for Density
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