pub trait Saturated {
// Required methods
fn saturated_max() -> Self;
fn saturated_min() -> Self;
}
Expand description
This trait indicates that values of a type can be logically “saturated”.
This is used by the errors::UnwrapOrSaturate
extension trait.
Required Methods§
Sourcefn saturated_max() -> Self
fn saturated_max() -> Self
Returns the type’s saturated, maximum value.
Sourcefn saturated_min() -> Self
fn saturated_min() -> Self
Returns the type’s saturated, minimum value.
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.