pub enum Arg<T> {
Basic {
name: Ident,
ty: T,
default: Option<T>,
},
Unpack {
names: Vec<Ident>,
ty: T,
},
SelfArg {
mutable: bool,
reference: bool,
},
Kwargs {
name: Ident,
ty: T,
},
Variadic {
name: Ident,
ty: T,
},
}
Variants§
Basic
fn foo(a: i32)
Unpack
For typescript function foo({foo, bar}: FooProps)
SelfArg
rust: fn foo(&self)
Kwargs
python: def foo(**kwargs)
Variadic
python: def foo(*args)
Implementations§
Auto Trait Implementations§
impl<T> Freeze for Arg<T>where
T: Freeze,
impl<T> RefUnwindSafe for Arg<T>where
T: RefUnwindSafe,
impl<T> Send for Arg<T>where
T: Send,
impl<T> Sync for Arg<T>where
T: Sync,
impl<T> Unpin for Arg<T>where
T: Unpin,
impl<T> UnwindSafe for Arg<T>where
T: UnwindSafe,
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