#[non_exhaustive]pub enum TypeScale {
Compact,
Large,
XLarge,
}Expand description
Glyph size and cell metrics.
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.
Compact
5×7, row 18. Default (same metrics as 0.2.0).
Large
5×7 at 2× (10×14). Opt-in; hard to read for long tables.
XLarge
5×7 at 3× (15×21).
Implementations§
Source§impl TypeScale
impl TypeScale
Sourcepub const fn row_height(self) -> u32
pub const fn row_height(self) -> u32
Body row height.
Sourcepub const fn header_height(self) -> u32
pub const fn header_height(self) -> u32
Sticky header height.
Sourcepub const fn cell_pad_x(self) -> u32
pub const fn cell_pad_x(self) -> u32
Horizontal cell padding.
Sourcepub const fn plot_bottom(self) -> u32
pub const fn plot_bottom(self) -> u32
X-axis label band.
Trait Implementations§
impl Copy for TypeScale
impl Eq for TypeScale
impl StructuralPartialEq for TypeScale
Auto Trait Implementations§
impl Forget for TypeScale
impl Freeze for TypeScale
impl Move for TypeScale
impl RefUnwindSafe for TypeScale
impl Send for TypeScale
impl Sync for TypeScale
impl Unpin for TypeScale
impl UnsafeUnpin for TypeScale
impl UnwindSafe for TypeScale
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