#[non_exhaustive]pub enum CanvasType {
Ascii,
Block,
Braille,
Density,
Dot,
}Expand description
Runtime selector for the canvas rendering backend.
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.
Ascii
3x3 pixels per character using ASCII approximation glyphs.
Block
2x2 pixels per character using Unicode block elements.
Braille
2x4 pixels per character using Unicode braille patterns (default).
Density
Hit-counter canvas that maps density to shade characters.
Dot
1x2 pixels per character using dot/colon glyphs.
Trait Implementations§
Source§impl Clone for CanvasType
impl Clone for CanvasType
Source§fn clone(&self) -> CanvasType
fn clone(&self) -> CanvasType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CanvasType
impl Debug for CanvasType
Source§impl Hash for CanvasType
impl Hash for CanvasType
Source§impl PartialEq for CanvasType
impl PartialEq for CanvasType
impl Copy for CanvasType
impl Eq for CanvasType
impl StructuralPartialEq for CanvasType
Auto Trait Implementations§
impl Freeze for CanvasType
impl RefUnwindSafe for CanvasType
impl Send for CanvasType
impl Sync for CanvasType
impl Unpin for CanvasType
impl UnsafeUnpin for CanvasType
impl UnwindSafe for CanvasType
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