Struct stybulate::AsciiEscapedString[][src]

pub struct AsciiEscapedString(_);
Expand description

Simple string with ASCII escape sequences in it

Example

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());

Implementations

Constructs an AsciiEscapedString from a &str

Trait Implementations

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

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

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

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.