[][src]Trait tbot::markup::html::Formattable

pub trait Formattable {
    fn format(&self, formatter: &mut Formatter, _: Nesting) -> Result;
}

Represents a value that can be formatted for HTML.

Required methods

fn format(&self, formatter: &mut Formatter, _: Nesting) -> Result

Writes formatted value to the formatter.

Loading content...

Implementations on Foreign Types

impl Formattable for u8[src]

impl Formattable for u16[src]

impl Formattable for u32[src]

impl Formattable for u64[src]

impl Formattable for u128[src]

impl Formattable for usize[src]

impl Formattable for i8[src]

impl Formattable for i16[src]

impl Formattable for i32[src]

impl Formattable for i64[src]

impl Formattable for i128[src]

impl Formattable for isize[src]

impl Formattable for f32[src]

impl Formattable for f64[src]

impl Formattable for bool[src]

impl<A, B> Formattable for (A, B) where
    A: Formattable,
    B: Formattable
[src]

impl<A, B, C> Formattable for (A, B, C) where
    A: Formattable,
    B: Formattable,
    C: Formattable
[src]

impl<A, B, C, D> Formattable for (A, B, C, D) where
    A: Formattable,
    B: Formattable,
    C: Formattable,
    D: Formattable
[src]

impl<A, B, C, D, E> Formattable for (A, B, C, D, E) where
    A: Formattable,
    B: Formattable,
    C: Formattable,
    D: Formattable,
    E: Formattable
[src]

impl<A, B, C, D, E, F> Formattable for (A, B, C, D, E, F) where
    A: Formattable,
    B: Formattable,
    C: Formattable,
    D: Formattable,
    E: Formattable,
    F: Formattable
[src]

impl<A, B, C, D, E, F, G> Formattable for (A, B, C, D, E, F, G) where
    A: Formattable,
    B: Formattable,
    C: Formattable,
    D: Formattable,
    E: Formattable,
    F: Formattable,
    G: Formattable
[src]

impl<A, B, C, D, E, F, G, H> Formattable for (A, B, C, D, E, F, G, H) where
    A: Formattable,
    B: Formattable,
    C: Formattable,
    D: Formattable,
    E: Formattable,
    F: Formattable,
    G: Formattable,
    H: Formattable
[src]

impl<A, B, C, D, E, F, G, H, I> Formattable for (A, B, C, D, E, F, G, H, I) where
    A: Formattable,
    B: Formattable,
    C: Formattable,
    D: Formattable,
    E: Formattable,
    F: Formattable,
    G: Formattable,
    H: Formattable,
    I: Formattable
[src]

impl<A, B, C, D, E, F, G, H, I, J> Formattable for (A, B, C, D, E, F, G, H, I, J) where
    A: Formattable,
    B: Formattable,
    C: Formattable,
    D: Formattable,
    E: Formattable,
    F: Formattable,
    G: Formattable,
    H: Formattable,
    I: Formattable,
    J: Formattable
[src]

impl<A, B, C, D, E, F, G, H, I, J, K> Formattable for (A, B, C, D, E, F, G, H, I, J, K) where
    A: Formattable,
    B: Formattable,
    C: Formattable,
    D: Formattable,
    E: Formattable,
    F: Formattable,
    G: Formattable,
    H: Formattable,
    I: Formattable,
    J: Formattable,
    K: Formattable
[src]

impl Formattable for char[src]

impl<'_> Formattable for &'_ str[src]

impl Formattable for String[src]

impl<'_, T: Formattable> Formattable for &'_ [T][src]

impl<T: Formattable> Formattable for Vec<T>[src]

impl<T: Formattable + ?Sized> Formattable for Box<T>[src]

Loading content...

Implementors

impl<'a> Formattable for Entity<'a>[src]

impl<'a> Formattable for SemanticEntity<'a>[src]

impl<I, T> Formattable for InlineCode<I> where
    &'a I: IntoIterator<Item = &'a T>,
    T: Deref<Target = str>, 
[src]

impl<I, T> Formattable for Raw<I> where
    &'a I: IntoIterator<Item = &'a T>,
    T: Deref<Target = str>, 
[src]

impl<I, T, L> Formattable for CodeBlock<I, L> where
    &'a I: IntoIterator<Item = &'a T>,
    T: Deref<Target = str>,
    L: Deref<Target = str>, 
[src]

impl<T, L> Formattable for Link<T, L> where
    T: Formattable,
    L: Deref<Target = str>, 
[src]

impl<T: Formattable> Formattable for Html<T>[src]

impl<T: Formattable> Formattable for Bold<T>[src]

impl<T: Formattable> Formattable for Italic<T>[src]

impl<T: Formattable> Formattable for Strikethrough<T>[src]

impl<T: Formattable> Formattable for Underline<T>[src]

Loading content...