pub trait LogicValue:
Copy
+ Clone
+ PartialEq
+ Eq
+ Hash
+ 'static {
// Required methods
fn num_values() -> usize;
fn value(idx: usize) -> Self;
fn zero() -> Self;
fn one() -> Self;
}
Expand description
Abstraction of logic values.
Required Methods§
Sourcefn num_values() -> usize
fn num_values() -> usize
Get number of different values that this type can have.
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.