pub enum Disposition {
Normal,
Informative,
Warning,
Alert,
}Expand description
How the menuitem feels the information it’s displaying to the user should be presented.
Variants§
Normal
A standard menu item
Informative
Providing additional information to the user
Warning
Looking at potentially harmful results
Alert
Something bad could potentially happen
Trait Implementations§
Source§impl Clone for Disposition
impl Clone for Disposition
Source§fn clone(&self) -> Disposition
fn clone(&self) -> Disposition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Disposition
Source§impl Debug for Disposition
impl Debug for Disposition
Source§impl Display for Disposition
Item disposition
impl Display for Disposition
Item disposition
impl Eq for Disposition
Source§impl From<Disposition> for OwnedValue
impl From<Disposition> for OwnedValue
Source§fn from(value: Disposition) -> Self
fn from(value: Disposition) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Disposition
impl PartialEq for Disposition
Source§fn eq(&self, other: &Disposition) -> bool
fn eq(&self, other: &Disposition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Disposition
Auto Trait Implementations§
impl Freeze for Disposition
impl RefUnwindSafe for Disposition
impl Send for Disposition
impl Sync for Disposition
impl Unpin for Disposition
impl UnsafeUnpin for Disposition
impl UnwindSafe for Disposition
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