pub struct FIGlet {
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 FIGlet
impl FIGlet
Sourcepub fn from_content(contents: &str) -> Result<FIGlet, String>
pub fn from_content(contents: &str) -> Result<FIGlet, String>
generate FIGlet font from string literal
Sourcepub fn from_file(fontname: &str) -> Result<FIGlet, String>
pub fn from_file(fontname: &str) -> Result<FIGlet, String>
generate FIGlet font from specified file
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FIGlet
impl RefUnwindSafe for FIGlet
impl Send for FIGlet
impl Sync for FIGlet
impl Unpin for FIGlet
impl UnsafeUnpin for FIGlet
impl UnwindSafe for FIGlet
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