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

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

Describes the number of arguments a function may accept.

Variants

Function accepts exactly n arguments

Function accepts at least n arguments

Function accepts an inclusive range of arguments

Methods

impl Arity
[src]

Returns whether this arity may accept n arguments.

Trait Implementations

impl Copy for Arity
[src]

impl Clone for Arity
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Arity
[src]

Formats the value using the given formatter.

impl Eq for Arity
[src]

impl PartialEq for Arity
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for Arity
[src]

Formats the value using the given formatter. Read more