pub enum Compactness {
Comfortable,
Compact,
}Expand description
How densely a reader wants table rows packed.
Packing is a fact about the reader’s eyes and screen, not about what a
description says, so it is a reader setting like Density and the
description has no word for it. It moves only the row block: the row’s
height is the one thing a reader can trade for more rows on screen.
Variants§
Comfortable
The model’s row: ROW_BLOCK, the height a compact action and a menu
button both fit.
Compact
A denser row: Step::Broad of the base, audiofiles’ historical
row-height default.
Implementations§
Source§impl Compactness
impl Compactness
Sourcepub const fn attribute_value(self) -> &'static str
pub const fn attribute_value(self) -> &'static str
The value of COMPACTNESS_ATTRIBUTE that chooses exactly this packing.
Sourcepub fn from_attribute_value(value: &str) -> Option<Self>
pub fn from_attribute_value(value: &str) -> Option<Self>
Read back what attribute_value wrote.
Anything else, including an empty string, is no choice: the host keeps the comfortable default.
Trait Implementations§
Source§impl Clone for Compactness
impl Clone for Compactness
impl Copy for Compactness
Source§impl Debug for Compactness
impl Debug for Compactness
Source§impl Default for Compactness
impl Default for Compactness
impl Eq for Compactness
Source§impl Hash for Compactness
impl Hash for Compactness
Source§impl PartialEq for Compactness
impl PartialEq for Compactness
impl StructuralPartialEq for Compactness
Auto Trait Implementations§
impl Freeze for Compactness
impl RefUnwindSafe for Compactness
impl Send for Compactness
impl Sync for Compactness
impl Unpin for Compactness
impl UnsafeUnpin for Compactness
impl UnwindSafe for Compactness
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