Struct move_ts::CodegenContext
source · [−]pub struct CodegenContext<'info> { /* private fields */ }
Implementations
sourceimpl<'info> CodegenContext<'info>
impl<'info> CodegenContext<'info>
pub fn new(pkg: &'info IDLPackage) -> Self
pub fn get_module_generator(
&self,
value: &'info IDLModule
) -> IDLModuleGenerator<'info>
pub fn generate<T: Codegen>(&self, value: &T) -> Result<CodeText>
pub fn try_join_with_separator<'a, I, T>(
&self,
values: I,
separator: &str
) -> Result<CodeText> where
I: IntoIterator<Item = &'a T>,
T: Codegen + 'a,
pub fn try_join<'a, I, T>(&self, values: I) -> Result<CodeText> where
I: IntoIterator<Item = &'a T>,
T: Codegen + 'a,
Auto Trait Implementations
impl<'info> RefUnwindSafe for CodegenContext<'info>
impl<'info> Send for CodegenContext<'info>
impl<'info> Sync for CodegenContext<'info>
impl<'info> Unpin for CodegenContext<'info>
impl<'info> UnwindSafe for CodegenContext<'info>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more