pub struct Cell<S> {
pub text: S,
pub row_span: u32,
pub col_span: u32,
}Expand description
One cell of a table row as the family’s models record it: its text, and how many rows and columns it owns. A span of 0 is read as 1.
The text is the cell’s plain text; a cell of several paragraphs joins them with \n, which
a field keeps (quoted) rather than flattening.
Fields§
§text: SThe cell’s plain text.
row_span: u32Rows the cell owns, its own included.
col_span: u32Columns the cell owns, its own included.
Implementations§
Trait Implementations§
impl<S: Copy> Copy for Cell<S>
impl<S: Eq> Eq for Cell<S>
impl<S: PartialEq> StructuralPartialEq for Cell<S>
Auto Trait Implementations§
impl<S> Freeze for Cell<S>where
S: Freeze,
impl<S> RefUnwindSafe for Cell<S>where
S: RefUnwindSafe,
impl<S> Send for Cell<S>where
S: Send,
impl<S> Sync for Cell<S>where
S: Sync,
impl<S> Unpin for Cell<S>where
S: Unpin,
impl<S> UnsafeUnpin for Cell<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Cell<S>where
S: UnwindSafe,
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.