Skip to main content

Cell

Struct Cell 

Source
pub struct Cell {
Show 43 fields pub empty: bool, pub skippable: bool, pub omitted: bool, pub skipped: bool, pub thead_in_row: bool, pub thead_in_column: bool, pub before: Option<Tokens>, pub after: Option<Tokens>, pub align: Option<Align>, pub width: Option<Dimension>, pub height: Option<Dimension>, pub depth: Option<Dimension>, pub cached_width: Option<Dimension>, pub cached_height: Option<Dimension>, pub cached_depth: Option<Dimension>, pub colspan: Option<usize>, pub colspanned: Option<usize>, pub rowspan: Option<usize>, pub rowspanned: Option<usize>, pub boxes: Option<Digested>, pub cell_type: Option<char>, pub content_class: Option<ColumnSpec>, pub content_length: Option<usize>, pub border_left: Option<usize>, pub border_right: Option<usize>, pub border_top: Option<usize>, pub border_bottom: Option<usize>, pub top_padding: Option<usize>, pub bottom_padding: Option<usize>, pub right_padding: Option<usize>, pub left_padding: Option<usize>, pub vattach: Option<String>, pub cell: Option<Node>, pub x: Option<Dimension>, pub y: Option<Dimension>, pub border: String, pub tabskip: Option<Glue>, pub lspaces: Option<Digested>, pub rspaces: Option<Digested>, pub class: Option<String>, pub has_intercol_before: bool, pub has_intercol_after: bool, pub backgroundcolor: Option<String>,
}

Fields§

§empty: bool§skippable: bool§omitted: bool§skipped: bool§thead_in_row: bool§thead_in_column: bool§before: Option<Tokens>§after: Option<Tokens>§align: Option<Align>§width: Option<Dimension>§height: Option<Dimension>§depth: Option<Dimension>§cached_width: Option<Dimension>§cached_height: Option<Dimension>§cached_depth: Option<Dimension>§colspan: Option<usize>§colspanned: Option<usize>§rowspan: Option<usize>§rowspanned: Option<usize>§boxes: Option<Digested>§cell_type: Option<char>§content_class: Option<ColumnSpec>§content_length: Option<usize>§border_left: Option<usize>§border_right: Option<usize>§border_top: Option<usize>§border_bottom: Option<usize>§top_padding: Option<usize>§bottom_padding: Option<usize>§right_padding: Option<usize>§left_padding: Option<usize>§vattach: Option<String>§cell: Option<Node>§x: Option<Dimension>§y: Option<Dimension>§border: String§tabskip: Option<Glue>

Perl: $$colspec{tabskip} — intercolumn glue from \halign template

§lspaces: Option<Digested>

Perl: $$colspec{lspaces} — left-side spacing (incl. tabskip)

§rspaces: Option<Digested>

Perl: $$colspec{rspaces} — right-side spacing

§class: Option<String>

Perl: $$cell{class} — CSS class for the cell

§has_intercol_before: bool

Whether this column has \lx@intercol in its before tokens (from template). Set during template building, used by nopad heuristic to distinguish regular columns (has intercolumn padding) from @{}-disabled columns.

§has_intercol_after: bool

Whether this column has \lx@intercol in its after tokens (from template). Set during template building, used by nopad heuristic to distinguish regular columns (has intercolumn padding) from @{}-disabled columns.

§backgroundcolor: Option<String>

Background color from \columncolor/\cellcolor (set during digestion by @setcellcolor)

Implementations§

Source§

impl Cell

Source

pub fn border_at(&self, side: BorderSpec) -> Option<usize>

Trait Implementations§

Source§

impl Clone for Cell

Source§

fn clone(&self) -> Cell

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Cell

Source§

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

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

impl Default for Cell

Source§

fn default() -> Cell

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

impl PartialEq for Cell

Source§

fn eq(&self, other: &Cell) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Cell

Auto Trait Implementations§

§

impl !RefUnwindSafe for Cell

§

impl !Send for Cell

§

impl !Sync for Cell

§

impl !UnwindSafe for Cell

§

impl Freeze for Cell

§

impl Unpin for Cell

§

impl UnsafeUnpin for Cell

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.