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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".