[][src]Enum serenity::utils::ContentModifier

pub enum ContentModifier {
    Italic,
    Bold,
    Strikethrough,
    Code,
    Underline,
}

Formatting modifiers for MessageBuilder content pushes

Provides an enum of formatting modifiers for a string, for combination with string types and Content types.

Examples

Create a new Content type which describes a bold-italic "text":

use serenity::utils::ContentModifier::{Bold, Italic};
use serenity::utils::Content;
let content: Content = Bold + Italic + "text";

Variants

Trait Implementations

impl From<ContentModifier> for Content
[src]

Performs the conversion.

impl<T: ToString> Add<T> for ContentModifier
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Add<ContentModifier> for Content
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Add<ContentModifier> for ContentModifier
[src]

The resulting type after applying the + operator.

Performs the + operation.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

Get the TypeId of this object.

impl<T> UnsafeAny for T where
    T: Any