pub struct Table<T = ()> {
pub rows: Vec<TableRow<T>>,
pub alignments: Vec<Alignment>,
pub user_data: T,
}Expand description
A table is a collection of rows and columns with optional alignment. The first row is the header row.
Fields§
§rows: Vec<TableRow<T>>Each row is a vector of cells; header row is row 0.
alignments: Vec<Alignment>Column alignment; alignments.len() == column_count.
user_data: TUser-defined data associated with this table
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Table<T>where
T: Deserialize<'de> + Default,
impl<'de, T> Deserialize<'de> for Table<T>where
T: Deserialize<'de> + Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> StripData<T> for Table<T>
impl<T> StripData<T> for Table<T>
Source§type StrippedType = Table
type StrippedType = Table
The type without user data
Source§fn strip_data(self) -> Self::StrippedType
fn strip_data(self) -> Self::StrippedType
Remove user data from this AST node
impl<T> StructuralPartialEq for Table<T>
Auto Trait Implementations§
impl<T> Freeze for Table<T>where
T: Freeze,
impl<T> RefUnwindSafe for Table<T>where
T: RefUnwindSafe,
impl<T> Send for Table<T>where
T: Send,
impl<T> Sync for Table<T>where
T: Sync,
impl<T> Unpin for Table<T>where
T: Unpin,
impl<T> UnwindSafe for Table<T>where
T: 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