pub trait UpdateFunction<H: TensorBase>: Send + Sync {
// Required method
fn update(&self, old_state: &H, new_message: &H) -> H;
}Expand description
更新函数 trait:定义节点状态更新
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".