Trait bbcode::BBCode [] [src]

pub trait BBCode {
    fn as_html(&self) -> String;
}

BBCode is a trait that will convert the input BBCode into HTML

Included in this is a default ipml for &str, allowing you to

use bbcode::BBCode;

assert_eq!("[b]Bold![/b]".as_html(), "<strong>Bold!</strong>");

Required Methods

Implementations on Foreign Types

impl<'a> BBCode for &'a str
[src]

[src]

Implementors