Struct rustpython_ast::PythonArguments
source · 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 copy 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>
source§fn eq(&self, other: &PythonArguments<R>) -> bool
fn eq(&self, other: &PythonArguments<R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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