pub struct Plain<T> { /* private fields */ }
Expand description
An adaptor to allow writing stylish
attributed data to an output stream
by discarding style attributes.
let mut writer = stylish::Plain::new(String::new());
stylish::write!(writer, "Hello {:(fg=red)}", "Ferris")?;
assert_eq!(writer.into_inner(), "Hello Ferris");
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Plain<T>where
T: Freeze,
impl<T> RefUnwindSafe for Plain<T>where
T: RefUnwindSafe,
impl<T> Send for Plain<T>where
T: Send,
impl<T> Sync for Plain<T>where
T: Sync,
impl<T> Unpin for Plain<T>where
T: Unpin,
impl<T> UnwindSafe for Plain<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more