papergrid

Type Alias Margin

Source
pub type Margin = Sides<Indent>;
Expand description

Margin represent a 4 indents of table as a whole.

Aliased Type§

struct Margin {
    pub top: Indent,
    pub bottom: Indent,
    pub left: Indent,
    pub right: Indent,
}

Fields§

§top: Indent

Top side.

§bottom: Indent

Bottom side.

§left: Indent

Left side.

§right: Indent

Right side.

Implementations

Source§

impl<T> Sides<T>

Source

pub fn new(left: T, right: T, top: T, bottom: T) -> Self

Creates a new object.

Trait Implementations

Source§

impl<T: Clone> Clone for Sides<T>

Source§

fn clone(&self) -> Sides<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for Sides<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Default> Default for Sides<T>

Source§

fn default() -> Sides<T>

Returns the “default value” for a type. Read more
Source§

impl<T: PartialEq> PartialEq for Sides<T>

Source§

fn eq(&self, other: &Sides<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: Copy> Copy for Sides<T>

Source§

impl<T: Eq> Eq for Sides<T>

Source§

impl<T> StructuralPartialEq for Sides<T>