pub enum Language {
Show 20 variants
Python,
Node,
Ruby,
Php,
Elixir,
Wasm,
Ffi,
Go,
Java,
Csharp,
R,
Rust,
Kotlin,
KotlinAndroid,
Swift,
Dart,
Gleam,
Zig,
C,
Jni,
}Variants§
Python
Node
Ruby
Php
Elixir
Wasm
Ffi
Go
Java
Csharp
R
Rust
Kotlin
KotlinAndroid
Swift
Dart
Gleam
Zig
C
C consumer of the FFI layer — e2e test target, not a generated binding.
Jni
Rust JNI shim crate emitter — paired with kotlin-android.
Emits Java_* symbols that mirror the Kotlin Bridge external fun declarations.
Implementations§
Source§impl Language
impl Language
Sourcepub const ALL: [Language; 20]
pub const ALL: [Language; 20]
~keep Every Language variant, so name lists can be derived from the enum
rather than hand-maintained alongside it. Enumerated by hand because
Language has no derive-based variant iterator.
Sourcepub fn bridge_spellings(self) -> &'static [&'static str]
pub fn bridge_spellings(self) -> &'static [&'static str]
The spellings exclude_languages accepts for this target: its own name, plus the
backend crate that emits it where those differ.
Mirrors each backend’s own TARGET_SPELLINGS const. A caller that has a Language
rather than a specific backend – the generation pipeline’s per-language prune is the
motivating one – cannot reach those consts, and asking only the language name would
miss exclude_languages = ["pyo3"]. Kept in lock-step with the backends by
tests/trait_bridge_exclude_language_spellings.rs, which scans the consts out of the
source rather than trusting this match. ~keep
Sourcepub fn all_names_joined() -> String
pub fn all_names_joined() -> String
Trait Implementations§
impl Copy for Language
Source§impl<'de> Deserialize<'de> for Language
impl<'de> Deserialize<'de> for Language
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Language
Source§impl JsonSchema for Language
impl JsonSchema for Language
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Language
Auto Trait Implementations§
impl Freeze for Language
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnsafeUnpin for Language
impl UnwindSafe for Language
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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