Enum uniffi_macros::export::item::ExportItem
source · pub(super) enum ExportItem {
Function {
sig: FnSignature,
args: ExportFnArgs,
},
Impl {
self_ident: Ident,
items: Vec<ImplItem>,
args: ExportImplArgs,
},
Trait {
self_ident: Ident,
items: Vec<ImplItem>,
with_foreign: bool,
callback_interface_only: bool,
docstring: String,
args: ExportTraitArgs,
},
Struct {
self_ident: Ident,
uniffi_traits: Vec<UniffiTraitDiscriminants>,
},
}
Variants§
Implementations§
source§impl ExportItem
impl ExportItem
pub fn new(item: Item, attr_args: TokenStream) -> Result<Self>
pub fn from_impl(item: ItemImpl, attr_args: TokenStream) -> Result<Self>
fn from_trait(item: ItemTrait, attr_args: TokenStream) -> Result<Self>
fn from_struct(item: ItemStruct, attr_args: TokenStream) -> Result<Self>
Auto Trait Implementations§
impl RefUnwindSafe for ExportItem
impl !Send for ExportItem
impl !Sync for ExportItem
impl Unpin for ExportItem
impl UnwindSafe for ExportItem
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