pub struct ContentStyle {
pub foreground_color: Option<Color>,
pub background_color: Option<Color>,
pub alignment: Alignment,
pub wrap: Wrap,
pub width: CellWidth,
}
Expand description
Represents the style to apply to a line of content.
Fields§
§foreground_color: Option<Color>
§background_color: Option<Color>
§alignment: Alignment
§wrap: Wrap
§width: CellWidth
Implementations§
Source§impl ContentStyle
impl ContentStyle
pub fn default() -> ContentStyle
pub fn new( foreground_color: Option<Color>, background_color: Option<Color>, alignment: Alignment, wrap: Wrap, width: CellWidth, ) -> ContentStyle
Sourcepub fn from_format(format: &str) -> ContentStyle
pub fn from_format(format: &str) -> ContentStyle
Trait Implementations§
Source§impl Clone for ContentStyle
impl Clone for ContentStyle
Source§fn clone(&self) -> ContentStyle
fn clone(&self) -> ContentStyle
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 moreAuto Trait Implementations§
impl Freeze for ContentStyle
impl RefUnwindSafe for ContentStyle
impl Send for ContentStyle
impl Sync for ContentStyle
impl Unpin for ContentStyle
impl UnwindSafe for ContentStyle
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