pub struct Settings { /* private fields */ }
Expand description
Settings represent setting of a particular cell
Implementations
sourceimpl Settings
impl Settings
sourcepub fn indent(
self,
left: usize,
right: usize,
top: usize,
bottom: usize
) -> Self
pub fn indent(
self,
left: usize,
right: usize,
top: usize,
bottom: usize
) -> Self
Indent method sets indent 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.
To fix it you can construct split lines before calling this function.
Or you can pass a false
argument into Self::border_restriction
so if absent lines will be created.
sourcepub fn border_restriction(self, strict: bool) -> Self
pub fn border_restriction(self, strict: bool) -> Self
Set a split lines check.
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more