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>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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