pub struct FormatFill {
pub pattern_type: String,
pub fg_color: FormatColor,
pub bg_color: FormatColor,
}
Expand description
FormatFill
is used for fields that having both foreground color and background color,
It’s mainly applied in the Row
, Column
and Cell
’s Format
fill color.
§Fields
field | type | meaning |
---|---|---|
pattern_type | String | The color filling method, the contents of which can be referred to the official documentation |
fg_color | FormatColor | The foreground color of filling |
bg_color | FormatColor | The background color of filling |
Fields§
§pattern_type: String
§fg_color: FormatColor
§bg_color: FormatColor
Trait Implementations§
Source§impl Clone for FormatFill
impl Clone for FormatFill
Source§fn clone(&self) -> FormatFill
fn clone(&self) -> FormatFill
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 FormatFill
impl Debug for FormatFill
Source§impl Default for FormatFill
impl Default for FormatFill
Source§fn default() -> Self
fn default() -> Self
Method FormatFill::default()
creates a blank FormatFill
with no foreground color,
a blank background color, and a none
pattern_type.
When using Format::default()
, its fill
field will be filled by this method.
Source§impl PartialEq for FormatFill
impl PartialEq for FormatFill
impl StructuralPartialEq for FormatFill
Auto Trait Implementations§
impl Freeze for FormatFill
impl RefUnwindSafe for FormatFill
impl Send for FormatFill
impl Sync for FormatFill
impl Unpin for FormatFill
impl UnwindSafe for FormatFill
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