Struct dahlia::Dahlia

source ·
pub struct Dahlia { /* private fields */ }

Implementations

Formats a string using the format codes.

Example
let dahlia = Dahlia::new(Depth::High, true);
let text = dahlia.convert("&aHello\n&cWorld");
println!("{}", text);
Hello
World

Writes the prompt to stdout, then reads a line from input, and returns it (excluding the trailing newline).

Resets all modifiers.

Returns a string with all the possible formatting options.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.