Enum slate::message::Message
[−]
[src]
pub enum Message { Raw(String), Info(String), }
Variants
Raw(String)
Info(String)
Trait Implementations
impl Display for Message
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
If a Message is of type Raw, it's inner str is not going
to be altered when using the format!
macro.
Example
use slate::message::Message; let message = Message::Raw("don't touch me".to_string()); print!("{}", message); //=> "don't touch me"
In the case the message is of type Info, it will have an unique eol.
Example
use slate::message::Message; let message = Message::Info("hello world".to_string()); print!("{}", message); //=> "hello world\n"