pub struct FIGfont {
pub header_line: HeaderLine,
pub comments: String,
pub fonts: HashMap<u32, FIGcharacter>,
}
Expand description
FIGlet font, which will hold the mapping from u32 code to FIGcharacter
Fields§
§header_line: HeaderLine
§comments: String
§fonts: HashMap<u32, FIGcharacter>
Implementations§
Source§impl FIGfont
impl FIGfont
Sourcepub fn from_content(contents: &str) -> Result<FIGfont, String>
pub fn from_content(contents: &str) -> Result<FIGfont, String>
generate FIGlet font from string literal
Sourcepub fn from_file(fontname: &str) -> Result<FIGfont, String>
pub fn from_file(fontname: &str) -> Result<FIGfont, String>
generate FIGlet font from specified file
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FIGfont
impl RefUnwindSafe for FIGfont
impl Send for FIGfont
impl Sync for FIGfont
impl Unpin for FIGfont
impl UnwindSafe for FIGfont
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