Struct uniffi_macros::fnsig::NamedArg
source · pub(crate) struct NamedArg {
pub(crate) ident: Ident,
pub(crate) name: String,
pub(crate) ty: TokenStream,
pub(crate) ref_type: Option<Type>,
pub(crate) default: Option<DefaultValue>,
}
Fields§
§ident: Ident
§name: String
§ty: TokenStream
§ref_type: Option<Type>
§default: Option<DefaultValue>
Implementations§
source§impl NamedArg
impl NamedArg
pub(crate) fn new( ident: Ident, ty: &Type, defaults: &mut DefaultMap ) -> Result<Self>
pub(crate) fn lift_impl(&self) -> TokenStream
pub(crate) fn lower_impl(&self) -> TokenStream
sourcepub(crate) fn param(&self) -> TokenStream
pub(crate) fn param(&self) -> TokenStream
Generate the parameter for this Arg
pub(crate) fn arg_metadata(&self) -> Result<TokenStream>
Auto Trait Implementations§
impl RefUnwindSafe for NamedArg
impl !Send for NamedArg
impl !Sync for NamedArg
impl Unpin for NamedArg
impl UnwindSafe for NamedArg
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