Struct oftlisp::ast::Args [] [src]

pub struct Args<C: 'static + Context> {
    pub required: Vec<Symbol>,
    pub optional: Vec<(Symbol, Gc<Value<C>>)>,
    pub rest: Option<Symbol>,
}

A type that represents the arguments specified for a function.

Fields

The required arguments.

The optional arguments, and their default values.

The rest argument, if any.

Methods

impl<C: 'static + Context> Args<C>
[src]

[src]

Attempts to bind a list of arguments to the names specified in the Args object.

[src]

Converts a Value to an Args.

[src]

Converts the Args back to a Value. In general, don't do this.

Trait Implementations

impl<C: 'static + Context> Finalize for Args<C>
[src]

[src]

impl<C: 'static + Context> Trace for Args<C>
[src]

[src]

Marks all contained Gcs.

[src]

Increments the root-count of all contained Gcs.

[src]

Decrements the root-count of all contained Gcs.

[src]

Runs Finalize::finalize() on this object and all contained subobjects Read more

impl<C: 'static + Context> Drop for Args<C>
[src]

[src]

Executes the destructor for this type. Read more

impl<C: 'static + Context> Clone for Args<C>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<C: 'static + Context> Debug for Args<C>
[src]

[src]

Formats the value using the given formatter.

impl<C: 'static + Context> Display for Args<C>
[src]

[src]

Formats the value using the given formatter. Read more

impl<C: 'static + Context> PartialEq for Args<C>
[src]

[src]

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

1.0.0
[src]

This method tests for !=.