pub struct PhpBackend;Trait Implementations§
Source§impl Backend for PhpBackend
impl Backend for PhpBackend
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_public_api(
&self,
api: &ApiSurface,
config: &ResolvedCrateConfig,
) -> Result<Vec<GeneratedFile>>
fn generate_public_api( &self, api: &ApiSurface, config: &ResolvedCrateConfig, ) -> Result<Vec<GeneratedFile>>
Generate language-native public API wrappers. Optional — default returns empty.
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.
Auto Trait Implementations§
impl Freeze for PhpBackend
impl RefUnwindSafe for PhpBackend
impl Send for PhpBackend
impl Sync for PhpBackend
impl Unpin for PhpBackend
impl UnsafeUnpin for PhpBackend
impl UnwindSafe for PhpBackend
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