Struct nls_term_grid::GridCell
source · pub struct GridCell {
pub contents: String,
pub width: usize,
pub alignment: Alignment,
}Expand description
A textual string containing its display width and alignment
Fields§
§contents: StringThe 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§
source§impl PartialEq for GridCell
impl PartialEq for GridCell
impl Eq for GridCell
impl StructuralPartialEq for GridCell
Auto Trait Implementations§
impl Freeze for GridCell
impl RefUnwindSafe for GridCell
impl Send for GridCell
impl Sync for GridCell
impl Unpin for GridCell
impl UnwindSafe for GridCell
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