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 (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 ToastStyle
Source§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
impl Eq for ToastStyle
Source§impl PartialEq for ToastStyle
impl PartialEq for ToastStyle
Source§fn eq(&self, other: &ToastStyle) -> bool
fn eq(&self, other: &ToastStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.