Struct abbau_codegen_quote::Context
source · pub struct Context<'a> {
pub parent: TokenStream,
pub available_imports: &'a BTreeMap<String, Module>,
pub schema: &'a KsySchema,
pub out_dir: &'a Path,
}
Expand description
Context for transpiling a module / schema file
Fields§
§parent: TokenStream
Identifier for the parent module, e.g. quote!(crate)
available_imports: &'a BTreeMap<String, Module>
§schema: &'a KsySchema
§out_dir: &'a Path
Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Context<'a>
impl<'a> !Send for Context<'a>
impl<'a> !Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnwindSafe for Context<'a>
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