Struct PrintStyledContent
pub struct PrintStyledContent<D>(pub StyledContent<D>)
where
D: Display;Available on crate feature
term only.Expand description
A command that prints styled content.
See StyledContent for more info.
§Notes
Commands must be executed/queued for execution otherwise they do nothing.
Tuple Fields§
§0: StyledContent<D>Trait Implementations§
§impl<D> Clone for PrintStyledContent<D>
impl<D> Clone for PrintStyledContent<D>
§fn clone(&self) -> PrintStyledContent<D>
fn clone(&self) -> PrintStyledContent<D>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl<D> Command for PrintStyledContent<D>where
D: Display,
impl<D> Command for PrintStyledContent<D>where
D: Display,
impl<D> Copy for PrintStyledContent<D>
§impl<D> Debug for PrintStyledContent<D>
impl<D> Debug for PrintStyledContent<D>
§impl Display for PrintStyledContent<String>
impl Display for PrintStyledContent<String>
Auto Trait Implementations§
impl<D> Freeze for PrintStyledContent<D>where
StyledContent<D>: Freeze,
impl<D> RefUnwindSafe for PrintStyledContent<D>where
StyledContent<D>: RefUnwindSafe,
impl<D> Send for PrintStyledContent<D>where
StyledContent<D>: Send,
impl<D> Sync for PrintStyledContent<D>where
StyledContent<D>: Sync,
impl<D> Unpin for PrintStyledContent<D>where
StyledContent<D>: Unpin,
impl<D> UnsafeUnpin for PrintStyledContent<D>where
StyledContent<D>: UnsafeUnpin,
impl<D> UnwindSafe for PrintStyledContent<D>where
StyledContent<D>: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more