Struct uniffi_bindgen::bindings::kotlin::gen_kotlin::variant::VariantCodeType
source · pub(super) struct VariantCodeType {
pub v: Variant,
}
Fields§
§v: Variant
Trait Implementations§
source§impl CodeType for VariantCodeType
impl CodeType for VariantCodeType
source§fn type_label(&self, ci: &ComponentInterface) -> String
fn type_label(&self, ci: &ComponentInterface) -> String
The language specific label used to reference this type. This will be used in
method signatures and property declarations.
source§fn canonical_name(&self) -> String
fn canonical_name(&self) -> String
A representation of this type label that can be used as part of another
identifier. e.g.
read_foo()
, or FooInternals
. Read morefn literal(&self, _literal: &Literal, ci: &ComponentInterface) -> String
source§fn ffi_converter_name(&self) -> String
fn ffi_converter_name(&self) -> String
Name of the FfiConverter Read more
source§fn imports(&self) -> Option<Vec<String>>
fn imports(&self) -> Option<Vec<String>>
A list of imports that are needed if this type is in use.
Classes are imported exactly once.
source§fn initialization_fn(&self) -> Option<String>
fn initialization_fn(&self) -> Option<String>
Function to run at startup
Auto Trait Implementations§
impl RefUnwindSafe for VariantCodeType
impl Send for VariantCodeType
impl Sync for VariantCodeType
impl Unpin for VariantCodeType
impl UnwindSafe for VariantCodeType
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