Enum serenity::utils::ContentModifier [−][src]
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
Italic
Bold
Strikethrough
Code
Underline
Trait Implementations
impl<T: ToString> Add<T> for ContentModifier
[src]
impl<T: ToString> Add<T> for ContentModifier
type Output = Content
The resulting type after applying the +
operator.
fn add(self, rhs: T) -> Content
[src]
fn add(self, rhs: T) -> Content
Performs the +
operation.
impl Add<ContentModifier> for Content
[src]
impl Add<ContentModifier> for Content
type Output = Content
The resulting type after applying the +
operator.
fn add(self, rhs: ContentModifier) -> Content
[src]
fn add(self, rhs: ContentModifier) -> Content
Performs the +
operation.
impl Add<ContentModifier> for ContentModifier
[src]
impl Add<ContentModifier> for ContentModifier
type Output = Content
The resulting type after applying the +
operator.
fn add(self, rhs: ContentModifier) -> Content
[src]
fn add(self, rhs: ContentModifier) -> Content
Performs the +
operation.
impl From<ContentModifier> for Content
[src]
impl From<ContentModifier> for Content
fn from(cm: ContentModifier) -> Content
[src]
fn from(cm: ContentModifier) -> Content
Performs the conversion.
Auto Trait Implementations
impl Send for ContentModifier
impl Send for ContentModifier
impl Sync for ContentModifier
impl Sync for ContentModifier