pub struct PythonArguments<R = TextRange> {
pub range: OptionalRange<R>,
pub posonlyargs: Vec<Arg<R>>,
pub args: Vec<Arg<R>>,
pub vararg: Option<Box<Arg<R>>>,
pub kwonlyargs: Vec<Arg<R>>,
pub kw_defaults: Vec<Expr<R>>,
pub kwarg: Option<Box<Arg<R>>>,
pub defaults: Vec<Expr<R>>,
}Expand description
See also arguments
Fields§
§range: OptionalRange<R>§posonlyargs: Vec<Arg<R>>§args: Vec<Arg<R>>§vararg: Option<Box<Arg<R>>>§kwonlyargs: Vec<Arg<R>>§kw_defaults: Vec<Expr<R>>§kwarg: Option<Box<Arg<R>>>§defaults: Vec<Expr<R>>Implementations§
Source§impl<R> PythonArguments<R>
impl<R> PythonArguments<R>
pub fn into_arguments(self) -> Arguments<R>where
R: Clone,
Trait Implementations§
Source§impl<R: Clone> Clone for PythonArguments<R>
impl<R: Clone> Clone for PythonArguments<R>
Source§fn clone(&self) -> PythonArguments<R>
fn clone(&self) -> PythonArguments<R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R: Debug> Debug for PythonArguments<R>
impl<R: Debug> Debug for PythonArguments<R>
Source§impl<R> From<Arguments<R>> for PythonArguments<R>
impl<R> From<Arguments<R>> for PythonArguments<R>
Source§impl<R> Node for PythonArguments<R>
impl<R> Node for PythonArguments<R>
Source§impl<R: PartialEq> PartialEq for PythonArguments<R>
impl<R: PartialEq> PartialEq for PythonArguments<R>
impl<R> StructuralPartialEq for PythonArguments<R>
Auto Trait Implementations§
impl<R> Freeze for PythonArguments<R>
impl<R> RefUnwindSafe for PythonArguments<R>where
R: RefUnwindSafe,
impl<R> Send for PythonArguments<R>where
R: Send,
impl<R> Sync for PythonArguments<R>where
R: Sync,
impl<R> Unpin for PythonArguments<R>where
R: Unpin,
impl<R> UnwindSafe for PythonArguments<R>where
R: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more