Enum AlertType

enum AlertType

The type of alert.

Variants

Note

Useful information that users should know, even when skimming content

Tip

Helpful advice for doing things better or more easily

Important

Key information users need to know to achieve their goal

Warning

Urgent info that needs immediate user attention to avoid problems

Caution

Advises about risks or negative outcomes of certain actions

Implementations

impl Clone for AlertType

fn clone(self: &Self) -> AlertType

impl Copy for AlertType

impl Debug for AlertType

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Default for AlertType

fn default() -> AlertType

impl Eq for AlertType

impl Freeze for AlertType

impl PartialEq for AlertType

fn eq(self: &Self, other: &AlertType) -> bool

impl RefUnwindSafe for AlertType

impl Send for AlertType

impl StructuralPartialEq for AlertType

impl Sync for AlertType

impl Unpin for AlertType

impl UnsafeUnpin for AlertType

impl UnwindSafe for AlertType

impl<T> Any for AlertType

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for AlertType

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for AlertType

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for AlertType

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for AlertType

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for AlertType

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for AlertType

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for AlertType

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for AlertType

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>