Struct rustpython_vm::compiler::parser::ast::PythonArguments
source · pub struct PythonArguments<R = TextRange> {
pub range: EmptyRange<R>,
pub posonlyargs: Vec<Arg<R>, Global>,
pub args: Vec<Arg<R>, Global>,
pub vararg: Option<Box<Arg<R>, Global>>,
pub kwonlyargs: Vec<Arg<R>, Global>,
pub kw_defaults: Vec<Expr<R>, Global>,
pub kwarg: Option<Box<Arg<R>, Global>>,
pub defaults: Vec<Expr<R>, Global>,
}
Expand description
See also arguments
Fields§
§range: EmptyRange<R>
§posonlyargs: Vec<Arg<R>, Global>
§args: Vec<Arg<R>, Global>
§vararg: Option<Box<Arg<R>, Global>>
§kwonlyargs: Vec<Arg<R>, Global>
§kw_defaults: Vec<Expr<R>, Global>
§kwarg: Option<Box<Arg<R>, Global>>
§defaults: Vec<Expr<R>, Global>
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 for PythonArguments<R>where
R: Clone,
impl<R> Clone for PythonArguments<R>where R: Clone,
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 for PythonArguments<R>where
R: Debug,
impl<R> Debug for PythonArguments<R>where R: Debug,
source§impl<R> From<Arguments<R>> for PythonArguments<R>
impl<R> From<Arguments<R>> for PythonArguments<R>
source§fn from(arguments: Arguments<R>) -> PythonArguments<R>
fn from(arguments: Arguments<R>) -> PythonArguments<R>
Converts to this type from the input type.
source§impl<R> Node for PythonArguments<R>
impl<R> Node for PythonArguments<R>
source§impl<R> PartialEq<PythonArguments<R>> for PythonArguments<R>where
R: PartialEq<R>,
impl<R> PartialEq<PythonArguments<R>> for PythonArguments<R>where R: PartialEq<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> 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