mod expandable;
mod joinable;
mod paintable;
mod pushable;
mod replaceable;
mod sliceable;
mod spans;
mod splitable;
mod tag;
mod width;
mod width_sliceable;
pub use expandable::Expandable;
pub use joinable::Joinable;
pub use paintable::Paintable;
pub use pushable::Pushable;
pub use replaceable::*;
pub use sliceable::*;
pub use spans::*;
pub use splitable::*;
pub use tag::*;
pub use width::*;
pub use width_sliceable::*;
pub trait RawText {
fn raw(&self) -> String;
fn raw_ref(&self) -> &str;
}
impl RawText for String {
fn raw(&self) -> String {
self.clone()
}
fn raw_ref(&self) -> &str {
self.as_str()
}
}
impl RawText for &str {
fn raw(&self) -> String {
self.to_string()
}
fn raw_ref(&self) -> &str {
*self
}
}