Struct uniffi_bindgen::bindings::swift::gen_swift::compounds::OptionalCodeType
source · pub struct OptionalCodeType {
inner: Type,
}
Fields§
§inner: Type
Implementations§
Trait Implementations§
source§impl CodeType for OptionalCodeType
impl CodeType for OptionalCodeType
source§fn type_label(&self) -> String
fn type_label(&self) -> 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) -> String
source§fn ffi_converter_name(&self) -> String
fn ffi_converter_name(&self) -> String
Name of the FfiConverter Read more
source§fn lower(&self) -> String
fn lower(&self) -> String
An expression for lowering a value into something we can pass over the FFI.
source§fn lift(&self) -> String
fn lift(&self) -> String
An expression for lifting a value from something we received over the FFI.
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 OptionalCodeType
impl Send for OptionalCodeType
impl Sync for OptionalCodeType
impl Unpin for OptionalCodeType
impl UnwindSafe for OptionalCodeType
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