pub enum CodeGenContext {
Module(String),
Class,
Function,
Async(Box<CodeGenContext>),
}
Expand description
A type to track the context of code generation.
Variants§
Trait Implementations§
Source§impl Clone for CodeGenContext
impl Clone for CodeGenContext
Source§fn clone(&self) -> CodeGenContext
fn clone(&self) -> CodeGenContext
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CodeGenContext
impl RefUnwindSafe for CodeGenContext
impl Send for CodeGenContext
impl Sync for CodeGenContext
impl Unpin for CodeGenContext
impl UnwindSafe for CodeGenContext
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