pub trait Node<'a>:
PyClass
+ Default
+ Sync
+ Send {
type In: InputPort<'a>;
type Out: OutputPort<'a>;
const CATEGORY: &'static str;
const DESCRIPTION: &'static str;
// Required method
fn execute(&self, input: Self::In) -> NodeResult<'a, Self>;
// Provided methods
fn initialize_input(
&'a self,
kwargs: Option<&'a Bound<'a, PyDict>>,
) -> Self::In { ... }
fn new() -> Self { ... }
}Required Associated Constants§
Required Associated Types§
Required Methods§
fn execute(&self, input: Self::In) -> NodeResult<'a, Self>
Provided Methods§
fn initialize_input(&'a self, kwargs: Option<&'a Bound<'a, PyDict>>) -> Self::In
fn new() -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.