Struct ketos::scope::ImportSet
[−]
[src]
pub struct ImportSet { pub module_name: Name, pub names: Vec<(Name, Name)>, }
Represents a set of names 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
names: Vec<(Name, Name)>
Names 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