pub trait Zero {
// Required methods
fn zero() -> Self;
fn is_zero(&self) -> bool;
}
Expand description
Base trait for types that can be wrapped in a NotZero
.
Implementors must provide a singleton object that will be used to mark empty edges in a
MatrixGraph
.
Note that this trait is already implemented for the base numeric types.
Required Methods§
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.