pub struct FormatBorderElement {
pub border_type: FormatBorderType,
pub color: FormatColor,
}
Expand description
FormatBorderElement
is used to edit one of the direction of the Cell
’s border style.
§Fields
field | type | meaning |
---|---|---|
border_type | FormatBorderType | Type of the border |
color | FormatColor | Color of the border |
Fields§
§border_type: FormatBorderType
§color: FormatColor
Implementations§
Source§impl FormatBorderElement
impl FormatBorderElement
pub fn new( border_type: &FormatBorderType, color: &FormatColor, ) -> FormatBorderElement
Sourcepub fn from_color(color: &FormatColor) -> FormatBorderElement
pub fn from_color(color: &FormatColor) -> FormatBorderElement
Create a new FormatBorderElement
based on the border color,
the border type defaults to FormatBorderType::Thin
Sourcepub fn from_border_type(border_type: &FormatBorderType) -> FormatBorderElement
pub fn from_border_type(border_type: &FormatBorderType) -> FormatBorderElement
Create a new FormatBorderElement
based on the border type,
the border color defaults to FormatColor::Default
Trait Implementations§
Source§impl Clone for FormatBorderElement
impl Clone for FormatBorderElement
Source§fn clone(&self) -> FormatBorderElement
fn clone(&self) -> FormatBorderElement
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 FormatBorderElement
impl Debug for FormatBorderElement
Source§impl Default for FormatBorderElement
impl Default for FormatBorderElement
Source§fn default() -> FormatBorderElement
fn default() -> FormatBorderElement
Returns the “default value” for a type. Read more
Source§impl PartialEq for FormatBorderElement
impl PartialEq for FormatBorderElement
impl Copy for FormatBorderElement
impl StructuralPartialEq for FormatBorderElement
Auto Trait Implementations§
impl Freeze for FormatBorderElement
impl RefUnwindSafe for FormatBorderElement
impl Send for FormatBorderElement
impl Sync for FormatBorderElement
impl Unpin for FormatBorderElement
impl UnwindSafe for FormatBorderElement
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