pub struct AsciiEscapedString(_);
Expand description
Simple string with ASCII escape sequences in it
use stybulate::{AsciiEscapedString, Unstyle};
let s = AsciiEscapedString::from("This is \x1b[1;31;44mbold red with blue background\x1b[0m");
assert_eq!("This is bold red with blue background", s.unstyle());
Constructs an AsciiEscapedString
from a &str
Formats the value using the given formatter. Read more
Returns the same string without the style-related chars/codepoints
Returns the number of lines in the string
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.