pub trait Weighted: PropertyInstanceGetter + PropertyInstanceSetter {
// Provided methods
fn get_weight(&self) -> Option<f64> { ... }
fn set_weight(&self, v: f64) { ... }
}
Provided Methods§
fn get_weight(&self) -> Option<f64>
fn set_weight(&self, v: f64)
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.