pub struct Formatting {
pub horizontal_trim: bool,
pub vertical_trim: bool,
pub allow_lines_alignment: bool,
}
Expand description
Formatting represent a logic of formatting of a cell text.
Fields§
§horizontal_trim: bool
An setting to allow horizontal trim.
vertical_trim: bool
An setting to allow vertical trim.
allow_lines_alignment: bool
An setting to allow alignment per line.
Implementations§
Source§impl Formatting
impl Formatting
Sourcepub const fn new(
horizontal_trim: bool,
vertical_trim: bool,
lines_alignment: bool,
) -> Formatting
pub const fn new( horizontal_trim: bool, vertical_trim: bool, lines_alignment: bool, ) -> Formatting
Creates a new Formatting
structure.
Trait Implementations§
Source§impl Clone for Formatting
impl Clone for Formatting
Source§fn clone(&self) -> Formatting
fn clone(&self) -> Formatting
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 Formatting
impl Debug for Formatting
Source§impl Default for Formatting
impl Default for Formatting
Source§fn default() -> Formatting
fn default() -> Formatting
Returns the “default value” for a type. Read more
Source§impl Hash for Formatting
impl Hash for Formatting
Source§impl Ord for Formatting
impl Ord for Formatting
Source§fn cmp(&self, other: &Formatting) -> Ordering
fn cmp(&self, other: &Formatting) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Formatting
impl PartialEq for Formatting
Source§impl PartialOrd for Formatting
impl PartialOrd for Formatting
impl Copy for Formatting
impl Eq for Formatting
impl StructuralPartialEq for Formatting
Auto Trait Implementations§
impl Freeze for Formatting
impl RefUnwindSafe for Formatting
impl Send for Formatting
impl Sync for Formatting
impl Unpin for Formatting
impl UnwindSafe for Formatting
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