pub struct BorderStyle {
pub top: Option<BorderLine>,
pub right: Option<BorderLine>,
pub bottom: Option<BorderLine>,
pub left: Option<BorderLine>,
}Expand description
Border style for cells
Fields§
§top: Option<BorderLine>Top border
right: Option<BorderLine>Right border
bottom: Option<BorderLine>Bottom border
left: Option<BorderLine>Left border
Implementations§
Source§impl BorderStyle
impl BorderStyle
Sourcepub fn horizontal_only(width: f64, color: Color) -> Self
pub fn horizontal_only(width: f64, color: Color) -> Self
Create a border style with only horizontal lines
Sourcepub fn vertical_only(width: f64, color: Color) -> Self
pub fn vertical_only(width: f64, color: Color) -> Self
Create a border style with only vertical lines
Trait Implementations§
Source§impl Clone for BorderStyle
impl Clone for BorderStyle
Source§fn clone(&self) -> BorderStyle
fn clone(&self) -> BorderStyle
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 BorderStyle
impl Debug for BorderStyle
Auto Trait Implementations§
impl Freeze for BorderStyle
impl RefUnwindSafe for BorderStyle
impl Send for BorderStyle
impl Sync for BorderStyle
impl Unpin for BorderStyle
impl UnwindSafe for BorderStyle
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