Enum uniffi_bindgen::bindings::TargetLanguage
source · pub enum TargetLanguage {
Kotlin,
Swift,
Python,
Ruby,
}
Expand description
Enumeration of all foreign language targets currently supported by this crate.
The functions in this module will delegate to a language-specific backend based
on the provided TargetLanguage
. For convenience of calling code we also provide
a few TryFrom
implementations to help guess the correct target language from
e.g. a file extension of command-line argument.
Variants§
Trait Implementations§
source§impl Clone for TargetLanguage
impl Clone for TargetLanguage
source§fn clone(&self) -> TargetLanguage
fn clone(&self) -> TargetLanguage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Display for TargetLanguage
impl Display for TargetLanguage
source§impl Hash for TargetLanguage
impl Hash for TargetLanguage
source§impl PartialEq<TargetLanguage> for TargetLanguage
impl PartialEq<TargetLanguage> for TargetLanguage
source§fn eq(&self, other: &TargetLanguage) -> bool
fn eq(&self, other: &TargetLanguage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&OsStr> for TargetLanguage
impl TryFrom<&OsStr> for TargetLanguage
source§impl TryFrom<&str> for TargetLanguage
impl TryFrom<&str> for TargetLanguage
source§impl TryFrom<String> for TargetLanguage
impl TryFrom<String> for TargetLanguage
impl Copy for TargetLanguage
impl Eq for TargetLanguage
impl StructuralEq for TargetLanguage
impl StructuralPartialEq for TargetLanguage
Auto Trait Implementations§
impl RefUnwindSafe for TargetLanguage
impl Send for TargetLanguage
impl Sync for TargetLanguage
impl Unpin for TargetLanguage
impl UnwindSafe for TargetLanguage
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