pub struct RustCompiler { /* private fields */ }
Expand description
Translate Rust AST to TypeScript AST
Implementations§
Source§impl RustCompiler
impl RustCompiler
pub fn compile_file(source: &Path, target: &Path) -> Result<ProgramNode>
pub fn compile( source_id: ArcStr, source: &str, target: &str, ) -> Result<ProgramNode>
Auto Trait Implementations§
impl Freeze for RustCompiler
impl RefUnwindSafe for RustCompiler
impl Send for RustCompiler
impl Sync for RustCompiler
impl Unpin for RustCompiler
impl UnwindSafe for RustCompiler
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