Struct genpdf::style::StyledCow [−][src]
Expand description
A Cow<'s, str>
with a Style
annotation.
Example
use genpdf::style; let ss1 = style::StyledCow::new("bold", style::Effect::Bold); let ss2 = style::StyledCow::new("red".to_owned(), style::Color::Rgb(255, 0, 0));
Fields
s: Cow<'s, str>
The annotated string.
style: Style
The style annotation.
Implementations
Creates a new styled string from the given string and style.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<'s> RefUnwindSafe for StyledCow<'s>
impl<'s> UnwindSafe for StyledCow<'s>
Blanket Implementations
Mutably borrows from an owned value. Read more