GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • rustpython_vm
  • function

This view

  • Original page
  • New address

GeezerVison is showing rustpython.github.io — rustpython_vm::function::FromArgs - Rust

[−][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]

fn from_args(
    _vm: &VirtualMachine,
    _args: &mut PyFuncArgs
) -> Result<Self, ArgumentError>
[src]

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

fn arity() -> RangeInclusive<usize>[src]

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

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

fn arity() -> RangeInclusive<usize>[src]

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

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

fn arity() -> RangeInclusive<usize>[src]

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

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

fn arity() -> RangeInclusive<usize>[src]

fn from_args(
    vm: &VirtualMachine,
    args: &mut PyFuncArgs
) -> Result<Self, ArgumentError>
[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]

fn arity() -> RangeInclusive<usize>[src]

fn from_args(
    vm: &VirtualMachine,
    args: &mut PyFuncArgs
) -> Result<Self, ArgumentError>
[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]

fn arity() -> RangeInclusive<usize>[src]

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

Loading content...

Implementors

impl FromArgs for PyFuncArgs[src]

fn from_args(
    _vm: &VirtualMachine,
    args: &mut PyFuncArgs
) -> Result<Self, ArgumentError>
[src]

impl FromArgs for ByteInnerExpandtabsOptions[src]

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

impl FromArgs for ByteInnerFindOptions[src]

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

impl FromArgs for ByteInnerNewOptions[src]

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

impl FromArgs for ByteInnerPaddingOptions[src]

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

impl FromArgs for ByteInnerSplitOptions[src]

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

impl FromArgs for ByteInnerSplitlinesOptions[src]

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

impl FromArgs for ByteInnerTranslateOptions[src]

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

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

fn arity() -> RangeInclusive<usize>[src]

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

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

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

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

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

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

fn arity() -> RangeInclusive<usize>[src]

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

Loading content...
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.