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::Args - Rust

[−][src]Struct rustpython_vm::function::Args

pub struct Args<T = PyObjectRef>(_);

A list of positional argument values.

A built-in function with a Args parameter is analogous to a Python function with *args. All remaining positional arguments are extracted (and hence the function will permit an arbitrary number of them).

Args optionally accepts a generic type parameter to allow type checks or conversions of each argument.

Methods

impl<T> Args<T>[src]

pub fn into_vec(self) -> Vec<T>[src]

impl<T: PyValue> Args<PyRef<T>>[src]

pub fn into_tuple(self, vm: &VirtualMachine) -> PyObjectRef[src]

Trait Implementations

impl<T: Clone> Clone for Args<T>[src]

fn clone(&self) -> Args<T>[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

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

Extracts this item from the next argument(s).

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

The range of positional arguments permitted by the function signature. Read more

impl<T> IntoIterator for Args<T>[src]

type Item = T

The type of the elements being iterated over.

type IntoIter = IntoIter<T>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Creates an iterator from a value. Read more

Auto Trait Implementations

impl<T> RefUnwindSafe for Args<T> where
    T: RefUnwindSafe, 

impl<T> Send for Args<T> where
    T: Send, 

impl<T> Sync for Args<T> where
    T: Sync, 

impl<T> Unpin for Args<T> where
    T: Unpin, 

impl<T> UnwindSafe for Args<T> where
    T: UnwindSafe, 

Blanket Implementations

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

fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

fn from(t: T) -> T[src]

Performs the conversion.

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

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

The range of positional arguments permitted by the function signature. Read more

fn from_args(&VirtualMachine, &mut PyFuncArgs) -> Result<T, ArgumentError>[src]

Extracts this item from the next argument(s).

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

fn into(self) -> U[src]

Performs the conversion.

impl<I> IntoIterator for I where
    I: Iterator, 
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

fn into_iter(self) -> I[src]

Creates an iterator from a value. Read more

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Statistics<f64> for T where
    T: IntoIterator,
    <T as IntoIterator>::Item: Borrow<f64>, 

fn min(self) -> f64

Returns the minimum value in the data Read more

fn max(self) -> f64

Returns the maximum value in the data Read more

fn abs_min(self) -> f64

Returns the minimum absolute value in the data Read more

fn abs_max(self) -> f64

Returns the maximum absolute value in the data Read more

fn mean(self) -> f64

Evaluates the sample mean, an estimate of the population mean. Read more

fn geometric_mean(self) -> f64

Evaluates the geometric mean of the data Read more

fn harmonic_mean(self) -> f64

Evaluates the harmonic mean of the data Read more

fn variance(self) -> f64

Estimates the unbiased population variance from the provided samples Read more

fn std_dev(self) -> f64

Estimates the unbiased population standard deviation from the provided samples Read more

fn population_variance(self) -> f64

Evaluates the population variance from a full population. Read more

fn population_std_dev(self) -> f64

Evaluates the population standard deviation from a full population. Read more

fn covariance(self, other: T) -> f64

Estimates the unbiased population covariance between the two provided samples Read more

fn population_covariance(self, other: T) -> f64

Evaluates the population covariance between the two provider populations Read more

fn quadratic_mean(self) -> f64

Estimates the quadratic mean (Root Mean Square) of the data Read more

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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

fn vzip(self) -> V

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.