pub struct StyledString<'content> { /* private fields */ }Expand description
A Styled String. This is the only safe Display method in terms of supporting NO_COLOR
Implementations§
Source§impl<'content> StyledString<'content>
impl<'content> StyledString<'content>
Trait Implementations§
Source§impl<'content> Clone for StyledString<'content>
impl<'content> Clone for StyledString<'content>
Source§fn clone(&self) -> StyledString<'content>
fn clone(&self) -> StyledString<'content>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'content> Debug for StyledString<'content>
impl<'content> Debug for StyledString<'content>
Auto Trait Implementations§
impl<'content> Freeze for StyledString<'content>
impl<'content> RefUnwindSafe for StyledString<'content>
impl<'content> Send for StyledString<'content>
impl<'content> Sync for StyledString<'content>
impl<'content> Unpin for StyledString<'content>
impl<'content> UnwindSafe for StyledString<'content>
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