Struct ketos::scope::ImportSet [] [src]

pub struct ImportSet {
    pub module_name: Name,
    pub constants: Vec<(Name, Name)>,
    pub macros: Vec<(Name, Name)>,
    pub values: Vec<(Name, Name)>,
}

Represents a set of named macros and values imported from a module.

Each import consists of a pair of names: a source name and a destination name. These are, respectively, the name of the value as it resides within the remote module and the name to which it will be assigned in the local scope.

Fields

module_name: Name

Name of module from which to import

constants: Vec<(Name, Name)>

Named constants which are imported

macros: Vec<(Name, Name)>

Named macros which are imported

values: Vec<(Name, Name)>

Named values which are imported

Methods

impl ImportSet
[src]

fn new(module_name: Name) -> ImportSet

Convenience method to create an empty ImportSet for the named module.

Trait Implementations

impl Clone for ImportSet
[src]

fn clone(&self) -> ImportSet

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more