pub struct Column<'a> {
pub name: &'a str,
pub width: Width,
pub priority: Priority,
}Expand description
One column of a table.
Described once. The grid track, the cell order and the drop behaviour are all derived from this, rather than being three hand-written encodings that must agree and are never checked against each other.
Fields§
§name: &'a strThe heading, and the name the cell is addressed by.
width: WidthHow much room it asks for.
priority: PriorityWhat it is worth when room runs out.
Implementations§
Trait Implementations§
impl<'a> Copy for Column<'a>
impl<'a> Eq for Column<'a>
impl<'a> StructuralPartialEq for Column<'a>
Auto Trait Implementations§
impl<'a> Freeze for Column<'a>
impl<'a> RefUnwindSafe for Column<'a>
impl<'a> Send for Column<'a>
impl<'a> Sync for Column<'a>
impl<'a> Unpin for Column<'a>
impl<'a> UnsafeUnpin for Column<'a>
impl<'a> UnwindSafe for Column<'a>
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