Struct papergrid::config::Formatting
source · 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.
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
Trait Implementations§
source§impl Clone for Formatting
impl Clone for Formatting
source§fn clone(&self) -> Formatting
fn clone(&self) -> Formatting
Returns a copy 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 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§fn eq(&self, other: &Formatting) -> bool
fn eq(&self, other: &Formatting) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Formatting
impl PartialOrd for Formatting
source§fn partial_cmp(&self, other: &Formatting) -> Option<Ordering>
fn partial_cmp(&self, other: &Formatting) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)