pub struct ZigBackend;Trait Implementations§
Source§impl Backend for ZigBackend
impl Backend for ZigBackend
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 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_type_stubs(
&self,
_api: &ApiSurface,
_config: &ResolvedCrateConfig,
) -> Result<Vec<GeneratedFile>, Error>
fn generate_type_stubs( &self, _api: &ApiSurface, _config: &ResolvedCrateConfig, ) -> Result<Vec<GeneratedFile>, Error>
Generate type stubs (.pyi, .rbs, .d.ts). Optional — default returns empty.
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 ZigBackend
impl RefUnwindSafe for ZigBackend
impl Send for ZigBackend
impl Sync for ZigBackend
impl Unpin for ZigBackend
impl UnsafeUnpin for ZigBackend
impl UnwindSafe for ZigBackend
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