pub struct Settings { /* private fields */ }
Expand description
Settings represent setting of a particular cell
Implementations
sourceimpl Settings
impl Settings
sourcepub fn padding(
self,
left: Indent,
right: Indent,
top: Indent,
bottom: Indent
) -> Self
pub fn padding(
self,
left: Indent,
right: Indent,
top: Indent,
bottom: Indent
) -> Self
padding method sets padding for a cell
sourcepub fn alignment(self, alignment: AlignmentHorizontal) -> Self
pub fn alignment(self, alignment: AlignmentHorizontal) -> Self
Alignment method sets horizontal alignment for a cell
sourcepub fn vertical_alignment(self, alignment: AlignmentVertical) -> Self
pub fn vertical_alignment(self, alignment: AlignmentVertical) -> Self
Alignment method sets horizontal alignment for a cell
sourcepub fn border(self, border: Border) -> Self
pub fn border(self, border: Border) -> Self
Set the settings’s border.
The border setting is in a restrictive manner, by default. So if there was no split line but border relies on it a error will be issued.
sourcepub fn formatting(self, formatting: Formatting) -> Self
pub fn formatting(self, formatting: Formatting) -> Self
Set a formatting settings.
It overades them even if any were not set.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more