#[non_exhaustive]pub enum Frame {
Grid,
HeaderRule,
Plain,
}Expand description
What a table draws around and between its columns.
Rules are drawn with box characters, or with ASCII for
BoxChars::Ascii. The frame decides how a
table treats a word wider than its column: Grid folds it,
and the other two let it run past the width.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Grid
An outer frame, column rules, and a rule under the header. A word wider than its column folds, so the frame stays aligned.
HeaderRule
One rule under the header and nothing else. A table with no header draws no rule.
Plain
No rules at all. Columns are separated by two spaces, and no line ends in a space.
Trait Implementations§
impl Copy for Frame
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Forget for Frame
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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