[][src]Struct rustpython_parser::ast::Parameters

pub struct Parameters {
    pub args: Vec<Parameter>,
    pub kwonlyargs: Vec<Parameter>,
    pub vararg: Varargs,
    pub kwarg: Varargs,
    pub defaults: Vec<Expression>,
    pub kw_defaults: Vec<Option<Expression>>,
}

Formal parameters to a function.

In cpython this is called arguments, but we choose parameters to distinguish between function parameters and actual call arguments.

Fields

args: Vec<Parameter>kwonlyargs: Vec<Parameter>vararg: Varargskwarg: Varargsdefaults: Vec<Expression>kw_defaults: Vec<Option<Expression>>

Trait Implementations

impl Debug for Parameters[src]

impl Default for Parameters[src]

impl PartialEq<Parameters> for Parameters[src]

impl StructuralPartialEq for Parameters[src]

Auto Trait Implementations

impl RefUnwindSafe for Parameters

impl Send for Parameters

impl Sync for Parameters

impl Unpin for Parameters

impl UnwindSafe for Parameters

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.