Skip to main content

NameSpace

Trait NameSpace 

Source
pub trait NameSpace: Object {
    // Required methods
    fn name(&self) -> Name;
    fn doc(&self) -> Option<String>;
    fn dict<K, V>(&self) -> HashMap<K, V>;
}

Required Methods§

Source

fn name(&self) -> Name

Returns the name of the object

Source

fn doc(&self) -> Option<String>

Returns the docstring, if any.

Source

fn dict<K, V>(&self) -> HashMap<K, V>

Returns the namespace of the Object.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§