pub enum ToastStyle {
Success,
Error,
Warning,
Info,
Neutral,
}Expand description
Visual style variant for the toast.
Variants§
Success
Success style (typically green).
Error
Error style (typically red).
Warning
Warning style (typically yellow/orange).
Info
Informational style (typically blue).
Neutral
Neutral style (no semantic coloring).
Trait Implementations§
Source§impl Clone for ToastStyle
impl Clone for ToastStyle
Source§fn clone(&self) -> ToastStyle
fn clone(&self) -> ToastStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToastStyle
impl Debug for ToastStyle
Source§impl Default for ToastStyle
impl Default for ToastStyle
Source§fn default() -> ToastStyle
fn default() -> ToastStyle
Returns the “default value” for a type. Read more
Source§impl PartialEq for ToastStyle
impl PartialEq for ToastStyle
impl Copy for ToastStyle
impl Eq for ToastStyle
impl StructuralPartialEq for ToastStyle
Auto Trait Implementations§
impl Freeze for ToastStyle
impl RefUnwindSafe for ToastStyle
impl Send for ToastStyle
impl Sync for ToastStyle
impl Unpin for ToastStyle
impl UnwindSafe for ToastStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.