[][src]Function wasmer_runtime_near::compiler_for_backend

pub fn compiler_for_backend(backend: Backend) -> Option<Box<dyn Compiler>>

Get the Compiler as a trait object for the given Backend. Returns Option because support for the requested Compiler may not be enabled by feature flags.

To get a list of the enabled backends as strings, call Backend::variants().