Struct glint::figlet::Figlet [−][src]
pub struct Figlet { /* fields omitted */ }
Implementations
Creates a Vec for holding figlet output with enough vertical space
to contain this font.
You may borrow this as a mutable slice and pass it to Font::write_to_buf
Writes a single character to the buffer.
The length of output
should be at least font.height()
, however it’s safe to
pass a smaller slice (the rendering will be cropped).
The same number of characters will be appended to each string, padding with spaces if needed.
#Example
use glint::Figlet;
let figlet = Figlet::default();
let mut output = figlet.create_vec();
figlet.write_to_buf("feat(client)", &mut output[..]);
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Figlet
impl UnwindSafe for Figlet
Blanket Implementations
Mutably borrows from an owned value. Read more