Trait python_ast::datamodel::namespace::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.

Object Safety§

This trait is not object safe.

Implementors§