Movatterモバイル変換


[0]ホーム

URL:


[][src]Enumrustpython_vm::function::ArgumentError

pub enum ArgumentError {    TooFewArgs,    TooManyArgs,    InvalidKeywordArgument(String),    RequiredKeywordArgument(String),    Exception(PyBaseExceptionRef),}

An error encountered while binding arguments to the parameters of a Pythonfunction call.

Variants

TooFewArgs

The call provided fewer positional arguments than the function requires.

TooManyArgs

The call provided more positional arguments than the function accepts.

InvalidKeywordArgument(String)

The function doesn't accept a keyword argument with the given name.

RequiredKeywordArgument(String)

The function require a keyword argument with the given name, but one wasn't provided

Exception(PyBaseExceptionRef)

An exception was raised while binding arguments to the functionparameters.

Trait Implementations

implFrom<PyRef<PyBaseException>> forArgumentError[src]

fnfrom(ex:PyBaseExceptionRef) -> Self[src]

Auto Trait Implementations

impl !RefUnwindSafe forArgumentError

impl !Send forArgumentError

impl !Sync forArgumentError

implUnpin forArgumentError

impl !UnwindSafe forArgumentError

Blanket Implementations

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

fntype_id(&self) ->TypeId[src]

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

fnborrow(&self) ->&T[src]

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

fnborrow_mut(&mut self) ->&mutT[src]

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

fnfrom(t: T) -> T[src]

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

fninto(self) -> U[src]

impl<T> Same<T> for T

typeOutput = T

Should always beSelf

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

typeError =Infallible

The type returned in the event of a conversion error.

fntry_from(value: U) ->Result<T, <T asTryFrom<U>>::Error>[src]

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

typeError = <U asTryFrom<T>>::Error

The type returned in the event of a conversion error.

fntry_into(self) ->Result<U, <U asTryFrom<T>>::Error>[src]

impl<V, T> VZip<V> for Twhere
    V: MultiLane<T>, 

fnvzip(self) -> V


[8]ページ先頭

©2009-2025 Movatter.jp