[][src]Enum ketos::function::Arity

pub enum Arity {
    Exact(u32),
    Min(u32),
    Range(u32u32),
}

Describes the number of arguments a function may accept.

Variants

Exact(u32)

Function accepts exactly n arguments

Min(u32)

Function accepts at least n arguments

Range(u32u32)

Function accepts an inclusive range of arguments

Methods

impl Arity[src]

pub fn accepts(&self, n: u32) -> bool[src]

Returns whether this arity may accept n arguments.

Trait Implementations

impl Eq for Arity[src]

impl Copy for Arity[src]

impl PartialEq<Arity> for Arity[src]

impl Clone for Arity[src]

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

Performs copy-assignment from source. Read more

impl Display for Arity[src]

impl Debug for Arity[src]

Auto Trait Implementations

impl Send for Arity

impl Sync for Arity

Blanket Implementations

impl<T> AnyValue for T where
    T: Any
[src]

impl<T, U> Into 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> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.