Struct branchless::core::formatting::StyledStringBuilder [−][src]
pub struct StyledStringBuilder { /* fields omitted */ }
Expand description
Helper to build StyledString
s by combining multiple strings (both regular
String
s and StyledString
s).
Implementations
Append a plain-text string to the internal buffer.
Style the provided text
using style
, then append it to the internal
buffer.
Directly append the provided StyledString
to the internal buffer.
Create a new StyledString
using all the components in the internal
buffer.
Helper function to join a list of StyledString
s into a single
StyledString
s, using the provided delimiter
.
Helper function to turn a list of lines, each of which is a
StyledString
, into a single StyledString
with a newline at the end
of each line.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for StyledStringBuilder
impl Send for StyledStringBuilder
impl Sync for StyledStringBuilder
impl Unpin for StyledStringBuilder
impl UnwindSafe for StyledStringBuilder