pub struct Dahlia { /* private fields */ }
Implementations
sourceimpl Dahlia
impl Dahlia
pub fn new(depth: Depth, no_reset: bool, marker: char) -> Self
sourcepub fn convert(&self, string: String) -> String
pub fn convert(&self, string: String) -> String
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
Auto Trait Implementations
impl RefUnwindSafe for Dahlia
impl Send for Dahlia
impl Sync for Dahlia
impl Unpin for Dahlia
impl UnwindSafe for Dahlia
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more