pub struct GridCell<D: Display> {
pub contents: D,
pub width: usize,
pub alignment: Alignment,
}Expand description
A textual string containing its display width and alignment
Fields§
§contents: DThe textual string displayed when written
width: usizeThe display width of contents in columns
alignment: AlignmentWhether contents is (left/right) aligned when padding is required
Trait Implementations§
impl<D: Eq + Display> Eq for GridCell<D>
impl<D: Display> StructuralPartialEq for GridCell<D>
Auto Trait Implementations§
impl<D> Freeze for GridCell<D>where
D: Freeze,
impl<D> RefUnwindSafe for GridCell<D>where
D: RefUnwindSafe,
impl<D> Send for GridCell<D>where
D: Send,
impl<D> Sync for GridCell<D>where
D: Sync,
impl<D> Unpin for GridCell<D>where
D: Unpin,
impl<D> UnwindSafe for GridCell<D>where
D: 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