pub struct JvmBackend {}Expand description
JVM Backend implementation
Implementations§
Source§impl JvmBackend
impl JvmBackend
Sourcepub fn generate_program(program: &GaiaModule) -> Result<JvmProgram>
pub fn generate_program(program: &GaiaModule) -> Result<JvmProgram>
Generate JVM program from Gaia program
Trait Implementations§
Source§impl Backend for JvmBackend
impl Backend for JvmBackend
Source§fn primary_target(&self) -> CompilationTarget
fn primary_target(&self) -> CompilationTarget
Get the primary compilation target supported by this backend.
Source§fn artifact_type(&self) -> ArtifactType
fn artifact_type(&self) -> ArtifactType
Get the type of artifact generated by this backend.
Source§fn match_score(&self, target: &CompilationTarget) -> f32
fn match_score(&self, target: &CompilationTarget) -> f32
Calculate the match score (0-100) for the given compilation target.
A score of 0 indicates that the target is not supported.
Source§fn generate(
&self,
program: &GaiaModule,
config: &GaiaConfig,
) -> Result<GeneratedFiles>
fn generate( &self, program: &GaiaModule, config: &GaiaConfig, ) -> Result<GeneratedFiles>
Compile Gaia program to target platform
Source§impl Default for JvmBackend
impl Default for JvmBackend
Source§fn default() -> JvmBackend
fn default() -> JvmBackend
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JvmBackend
impl RefUnwindSafe for JvmBackend
impl Send for JvmBackend
impl Sync for JvmBackend
impl Unpin for JvmBackend
impl UnsafeUnpin for JvmBackend
impl UnwindSafe for JvmBackend
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