pub enum FnArg<'a> {
Regular(RegularArg<'a>),
VarArgs(VarargsArg<'a>),
KwArgs(KwargsArg<'a>),
Py(PyArg<'a>),
CancelHandle(CancelHandleArg<'a>),
}
Variants§
Regular(RegularArg<'a>)
VarArgs(VarargsArg<'a>)
KwArgs(KwargsArg<'a>)
Py(PyArg<'a>)
CancelHandle(CancelHandleArg<'a>)
Implementations§
Source§impl<'a> FnArg<'a>
impl<'a> FnArg<'a>
pub fn name(&self) -> &Ident
pub fn ty(&self) -> &'a Type
pub fn from_py_with( &self, ) -> Option<&KeywordAttribute<from_py_with, LitStrValue<ExprPath>>>
pub fn to_varargs_mut(&mut self) -> Result<&mut Self>
pub fn to_kwargs_mut(&mut self) -> Result<&mut Self>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FnArg<'a>
impl<'a> RefUnwindSafe for FnArg<'a>
impl<'a> !Send for FnArg<'a>
impl<'a> !Sync for FnArg<'a>
impl<'a> Unpin for FnArg<'a>
impl<'a> UnwindSafe for FnArg<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)