#[non_exhaustive]pub enum Row<'a> {
Text {
label: &'a str,
value: Option<&'a str>,
},
Button {
label: &'a str,
id: u64,
},
Separator,
Swatch {
color: u32,
label: &'a str,
value: Option<&'a str>,
},
}Expand description
One row of a panel. Kinds are added with newer overlays, so a match
needs a _ arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text
label, and value beside it when there is one.
Button
A button with label; a click gives back id.
Separator
A line.
Swatch
A square of color (0x00RRGGBB) before label, and value beside
it when there is one. Since anvil-overlay 1.26.0: an older overlay
refuses the rows with InvalidArgument.
Implementations§
Trait Implementations§
impl<'a> Copy for Row<'a>
impl<'a> Eq for Row<'a>
impl<'a> StructuralPartialEq for Row<'a>
Auto Trait Implementations§
impl<'a> Forget for Row<'a>
impl<'a> Freeze for Row<'a>
impl<'a> Move for Row<'a>
impl<'a> RefUnwindSafe for Row<'a>
impl<'a> Send for Row<'a>
impl<'a> Sync for Row<'a>
impl<'a> Unpin for Row<'a>
impl<'a> UnsafeUnpin for Row<'a>
impl<'a> UnwindSafe for Row<'a>
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