pub struct FontConst { /* private fields */ }Expand description
Generates code to represent the contents of this font
Structured as a module containing category modules, each with constants of the type font_map::font::Glyph
Warning: font_map must be in scope in the module where this code is used
Implementations§
Source§impl FontConst
impl FontConst
Sourcepub fn inject(&mut self, tokens: TokenStream)
pub fn inject(&mut self, tokens: TokenStream)
Inject additional code into the generated module
Code will be in the body section of the outer module
Sourcepub fn codegen(&self) -> TokenStream
pub fn codegen(&self) -> TokenStream
Generate the code for the enum
Auto Trait Implementations§
impl Freeze for FontConst
impl RefUnwindSafe for FontConst
impl !Send for FontConst
impl !Sync for FontConst
impl Unpin for FontConst
impl UnwindSafe for FontConst
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