Skip to main content

ScriptGenerator

Trait ScriptGenerator 

Source
pub trait ScriptGenerator:
    Send
    + Sync
    + Debug {
    // Required method
    fn get_nodes(
        &self,
        assembly: &RawStr,
        fullname: &RawStr,
    ) -> Result<Option<Arc<Tree>>, ProviderError>;
}
Expand description

An external generator or dump reader, with trees compiled during registration. Failures retain their Python category through ProviderError::python_exception. The callback is always called without a cache lock held.

Required Methods§

Source

fn get_nodes( &self, assembly: &RawStr, fullname: &RawStr, ) -> Result<Option<Arc<Tree>>, ProviderError>

Assembly has the case-sensitive .dll suffix; fullname is namespace.class (or class alone). None models a generator miss.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§