pub struct KotlinAndroidBackend;Expand description
Backend implementation for the Kotlin/Android target.
Trait Implementations§
Source§impl Backend for KotlinAndroidBackend
impl Backend for KotlinAndroidBackend
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_bindings_checked(
&self,
api: ValidatedApiSurface<'_>,
config: &ResolvedCrateConfig,
) -> Result<Vec<GeneratedFile>>
fn generate_bindings_checked( &self, api: ValidatedApiSurface<'_>, config: &ResolvedCrateConfig, ) -> Result<Vec<GeneratedFile>>
Generate binding source code from a centrally validated API surface.
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 generate_type_stubs_checked(
&self,
api: ValidatedApiSurface<'_>,
config: &ResolvedCrateConfig,
) -> Result<Vec<GeneratedFile>>
fn generate_type_stubs_checked( &self, api: ValidatedApiSurface<'_>, config: &ResolvedCrateConfig, ) -> Result<Vec<GeneratedFile>>
Generate type stubs from a centrally validated API surface.
Source§fn generate_scaffold(
&self,
_api: &ApiSurface,
_config: &ResolvedCrateConfig,
) -> Result<Vec<GeneratedFile>>
fn generate_scaffold( &self, _api: &ApiSurface, _config: &ResolvedCrateConfig, ) -> Result<Vec<GeneratedFile>>
Generate package scaffolding. Optional — default returns empty.
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_public_api_checked(
&self,
api: ValidatedApiSurface<'_>,
config: &ResolvedCrateConfig,
) -> Result<Vec<GeneratedFile>>
fn generate_public_api_checked( &self, api: ValidatedApiSurface<'_>, config: &ResolvedCrateConfig, ) -> Result<Vec<GeneratedFile>>
Generate public API wrappers from a centrally validated API surface.
Source§fn generate_service_api(
&self,
_api: &ApiSurface,
_config: &ResolvedCrateConfig,
) -> Result<Vec<GeneratedFile>>
fn generate_service_api( &self, _api: &ApiSurface, _config: &ResolvedCrateConfig, ) -> Result<Vec<GeneratedFile>>
Generate the idiomatic service/app object and async handler bridge for a
backend that supports service API generation. Read more
Source§fn generate_service_api_checked(
&self,
api: ValidatedApiSurface<'_>,
config: &ResolvedCrateConfig,
) -> Result<Vec<GeneratedFile>>
fn generate_service_api_checked( &self, api: ValidatedApiSurface<'_>, config: &ResolvedCrateConfig, ) -> Result<Vec<GeneratedFile>>
Generate service API wrappers from a centrally validated API surface.
Source§fn build_config_with_config(
&self,
_config: &ResolvedCrateConfig,
) -> Option<BuildConfig>
fn build_config_with_config( &self, _config: &ResolvedCrateConfig, ) -> Option<BuildConfig>
Build configuration for this backend with full access to the crate config.
This allows backends to customize build steps based on configuration (e.g., exclude functions, styles). Read more
Source§impl Clone for KotlinAndroidBackend
impl Clone for KotlinAndroidBackend
Source§fn clone(&self) -> KotlinAndroidBackend
fn clone(&self) -> KotlinAndroidBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KotlinAndroidBackend
Source§impl Debug for KotlinAndroidBackend
impl Debug for KotlinAndroidBackend
Source§impl Default for KotlinAndroidBackend
impl Default for KotlinAndroidBackend
Source§fn default() -> KotlinAndroidBackend
fn default() -> KotlinAndroidBackend
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KotlinAndroidBackend
impl RefUnwindSafe for KotlinAndroidBackend
impl Send for KotlinAndroidBackend
impl Sync for KotlinAndroidBackend
impl Unpin for KotlinAndroidBackend
impl UnsafeUnpin for KotlinAndroidBackend
impl UnwindSafe for KotlinAndroidBackend
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more