[][src]Struct spaik::r8vm::ArgSpec

pub struct ArgSpec {
    pub nargs: ArgInt,
    pub nopt: ArgInt,
    pub rest: bool,
    pub env: ArgInt,
}

Fields

nargs: ArgIntnopt: ArgIntrest: boolenv: ArgInt

Implementations

impl ArgSpec[src]

pub const fn is_special(&self) -> bool[src]

pub const fn has_opt(&self) -> bool[src]

pub const fn has_body(&self) -> bool[src]

pub const fn has_env(&self) -> bool[src]

pub const fn sum_nargs(&self) -> ArgInt[src]

pub const fn sum_stack(&self) -> ArgInt[src]

pub const fn is_valid_num(&self, nargs: u16) -> bool[src]

pub const fn normal(nargs: u16) -> ArgSpec[src]

pub const fn opt(nargs: u16, nopt: u16) -> ArgSpec[src]

pub const fn rest(nargs: u16, nopt: u16) -> ArgSpec[src]

pub const fn any() -> ArgSpec[src]

pub const fn none() -> ArgSpec[src]

pub fn check(&self, fn_sym: SymID, nargs: u16) -> Result<(), Error>[src]

Trait Implementations

impl Clone for ArgSpec[src]

impl Copy for ArgSpec[src]

impl Debug for ArgSpec[src]

impl Default for ArgSpec[src]

impl Display for ArgSpec[src]

impl Eq for ArgSpec[src]

impl PartialEq<ArgSpec> for ArgSpec[src]

impl StructuralEq for ArgSpec[src]

impl StructuralPartialEq for ArgSpec[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.