pub struct StylesContainer {
pub text_color: Option<Color>,
pub background_color: Option<Color>,
pub styles: Vec<Style>,
}Expand description
A container for all the styles applied to the String This can also be serialized and applied with serde
Fields§
§text_color: Option<Color>§background_color: Option<Color>§styles: Vec<Style>Trait Implementations§
Source§impl Clone for StylesContainer
impl Clone for StylesContainer
Source§fn clone(&self) -> StylesContainer
fn clone(&self) -> StylesContainer
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 Debug for StylesContainer
impl Debug for StylesContainer
Source§impl Default for StylesContainer
impl Default for StylesContainer
Source§fn default() -> StylesContainer
fn default() -> StylesContainer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StylesContainer
impl RefUnwindSafe for StylesContainer
impl Send for StylesContainer
impl Sync for StylesContainer
impl Unpin for StylesContainer
impl UnwindSafe for StylesContainer
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