Enum AlertStyleType

pub enum AlertStyleType

Options for alert rendering in markdown. See Render::alert_style for more details.

Variants

Specific

divs with class="markdown-alert markdown-alert-<type>"

Semantic

asides with class="admonition <type>", matching docutils' output

Trait Implementations

impl Clone for AlertStyleType

fn clone(&self) -> Self

impl Copy for AlertStyleType

impl Debug for AlertStyleType

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

impl Default for AlertStyleType

fn default() -> Self

Auto Trait Implementations

impl Freeze for AlertStyleType

impl RefUnwindSafe for AlertStyleType

impl Send for AlertStyleType

impl Sync for AlertStyleType

impl Unpin for AlertStyleType

impl UnsafeUnpin for AlertStyleType

impl UnwindSafe for AlertStyleType

Blanket Implementations

impl<T> Any for AlertStyleType where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for AlertStyleType where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for AlertStyleType where T: ?Sized,

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

impl<T> CloneToUninit for AlertStyleType where T: Clone,

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

impl<T> From<T> for AlertStyleType

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for AlertStyleType where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for AlertStyleType where U: From<T>,

fn into(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<U> for AlertStyleType where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for AlertStyleType where U: TryFrom<T>,

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