pub struct FontEnum { /* private fields */ }Expand description
Generates code to represent the contents of this font
Structured as a giant enum of a unique type
Implementations§
Source§impl FontEnum
impl FontEnum
Sourcepub fn inject(&mut self, tokens: TokenStream)
pub fn inject(&mut self, tokens: TokenStream)
Inject additional code into the generated enum
Code will be in the impl section of the new type
Sourcepub fn codegen(&self) -> TokenStream
pub fn codegen(&self) -> TokenStream
Generate the code for the enum
Auto Trait Implementations§
impl Freeze for FontEnum
impl RefUnwindSafe for FontEnum
impl !Send for FontEnum
impl !Sync for FontEnum
impl Unpin for FontEnum
impl UnwindSafe for FontEnum
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