[][src]Trait rustpython_vm::function::FromArgs

pub trait FromArgs: Sized {
    fn from_args(
        vm: &VirtualMachine,
        args: &mut PyFuncArgs
    ) -> Result<Self, ArgumentError>; fn arity() -> RangeInclusive<usize> { ... } }

Implemented by any type that can be accepted as a parameter to a built-in function.

Required methods

fn from_args(
    vm: &VirtualMachine,
    args: &mut PyFuncArgs
) -> Result<Self, ArgumentError>

Extracts this item from the next argument(s).

Loading content...

Provided methods

fn arity() -> RangeInclusive<usize>

The range of positional arguments permitted by the function signature.

Returns an empty range if not applicable.

Loading content...

Implementations on Foreign Types

impl FromArgs for ()[src]

impl<A> FromArgs for (A,) where
    A: FromArgs
[src]

impl<A, B> FromArgs for (A, B) where
    A: FromArgs,
    B: FromArgs
[src]

impl<A, B, C> FromArgs for (A, B, C) where
    A: FromArgs,
    B: FromArgs,
    C: FromArgs
[src]

impl<A, B, C, D> FromArgs for (A, B, C, D) where
    A: FromArgs,
    B: FromArgs,
    C: FromArgs,
    D: FromArgs
[src]

impl<A, B, C, D, E> FromArgs for (A, B, C, D, E) where
    A: FromArgs,
    B: FromArgs,
    C: FromArgs,
    D: FromArgs,
    E: FromArgs
[src]

impl<A, B, C, D, E, F> FromArgs for (A, B, C, D, E, F) where
    A: FromArgs,
    B: FromArgs,
    C: FromArgs,
    D: FromArgs,
    E: FromArgs,
    F: FromArgs
[src]

Loading content...

Implementors

impl FromArgs for PyFuncArgs[src]

impl FromArgs for ByteInnerExpandtabsOptions[src]

impl FromArgs for ByteInnerFindOptions[src]

impl FromArgs for ByteInnerNewOptions[src]

impl FromArgs for ByteInnerPaddingOptions[src]

impl FromArgs for ByteInnerSplitOptions[src]

impl FromArgs for ByteInnerSplitlinesOptions[src]

impl FromArgs for ByteInnerTranslateOptions[src]

impl<T> FromArgs for OptionalArg<T> where
    T: TryFromObject
[src]

impl<T> FromArgs for Args<T> where
    T: TryFromObject
[src]

impl<T> FromArgs for KwArgs<T> where
    T: TryFromObject
[src]

impl<T> FromArgs for T where
    T: TryFromObject
[src]

Loading content...
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy