pub struct FormatFont {
pub bold: bool,
pub italic: bool,
pub underline: bool,
pub size: f64,
pub color: FormatColor,
pub name: String,
}
Expand description
FormatFont
is used to handle font-related fields, mainly applied to Cell
.
§Fields
field | type | meaning |
---|---|---|
bold | bool | Whether the font is bold. |
italic | bool | Whether the font is italic. |
underline | bool | Whether the font is underlined. |
size | f64 | Font size in point. |
color | FormatColor | Font color. |
name | String | Font name, same as displayed in Excel. |
Fields§
§bold: bool
§italic: bool
§underline: bool
§size: f64
§color: FormatColor
§name: String
Trait Implementations§
Source§impl Clone for FormatFont
impl Clone for FormatFont
Source§fn clone(&self) -> FormatFont
fn clone(&self) -> FormatFont
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 FormatFont
impl Debug for FormatFont
Source§impl Default for FormatFont
impl Default for FormatFont
Source§fn default() -> Self
fn default() -> Self
Method FormatFont::default()
creates a default FormatFont
in Excel,
with font name Calibri and font size 11.0 in point
When using Format::default()
, its font
field will be filled by this method.
Source§impl PartialEq for FormatFont
impl PartialEq for FormatFont
impl StructuralPartialEq for FormatFont
Auto Trait Implementations§
impl Freeze for FormatFont
impl RefUnwindSafe for FormatFont
impl Send for FormatFont
impl Sync for FormatFont
impl Unpin for FormatFont
impl UnwindSafe for FormatFont
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