pub struct NapiBackend;Trait Implementations§
Source§impl Backend for NapiBackend
impl Backend for NapiBackend
Source§fn capabilities(&self) -> Capabilities
fn capabilities(&self) -> Capabilities
What this backend supports.
Source§fn generate_bindings(
&self,
api: &ApiSurface,
config: &ResolvedCrateConfig,
) -> Result<Vec<GeneratedFile>>
fn generate_bindings( &self, api: &ApiSurface, config: &ResolvedCrateConfig, ) -> Result<Vec<GeneratedFile>>
Generate binding source code.
Source§fn generate_type_stubs(
&self,
api: &ApiSurface,
config: &ResolvedCrateConfig,
) -> Result<Vec<GeneratedFile>>
fn generate_type_stubs( &self, api: &ApiSurface, config: &ResolvedCrateConfig, ) -> Result<Vec<GeneratedFile>>
Generate type stubs (.pyi, .rbs, .d.ts). Optional — default returns empty.
Source§fn build_config(&self) -> Option<BuildConfig>
fn build_config(&self) -> Option<BuildConfig>
Build configuration for this backend. Returns
None if build is not supported.Source§fn generate_scaffold(
&self,
_api: &ApiSurface,
_config: &ResolvedCrateConfig,
) -> Result<Vec<GeneratedFile>, Error>
fn generate_scaffold( &self, _api: &ApiSurface, _config: &ResolvedCrateConfig, ) -> Result<Vec<GeneratedFile>, Error>
Generate package scaffolding. Optional — default returns empty.
Source§fn generate_public_api(
&self,
_api: &ApiSurface,
_config: &ResolvedCrateConfig,
) -> Result<Vec<GeneratedFile>, Error>
fn generate_public_api( &self, _api: &ApiSurface, _config: &ResolvedCrateConfig, ) -> Result<Vec<GeneratedFile>, Error>
Generate language-native public API wrappers. Optional — default returns empty.
Auto Trait Implementations§
impl Freeze for NapiBackend
impl RefUnwindSafe for NapiBackend
impl Send for NapiBackend
impl Sync for NapiBackend
impl Unpin for NapiBackend
impl UnsafeUnpin for NapiBackend
impl UnwindSafe for NapiBackend
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