pub enum Priority {
Optional,
Secondary,
Essential,
}Expand description
What a column is worth when there is not room for all of them.
Ordered: Priority::Optional drops first, Priority::Essential never
drops. This replaces addressing columns by position, which is what both
webview apps do today and is a live bug rather than only verbosity. goingson
hides mobile columns with nth-child(n+5) against a seven-column table, so
inserting a column silently hides the wrong one.
Variants§
Optional
Dropped first.
Secondary
Dropped once the optional columns are gone.
Essential
Never dropped. Without it the row does not identify itself.
Trait Implementations§
impl Copy for Priority
impl Eq for Priority
Source§impl Ord for Priority
impl Ord for Priority
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Priority
impl PartialOrd for Priority
impl StructuralPartialEq for Priority
Auto Trait Implementations§
impl Freeze for Priority
impl RefUnwindSafe for Priority
impl Send for Priority
impl Sync for Priority
impl Unpin for Priority
impl UnsafeUnpin for Priority
impl UnwindSafe for Priority
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