pub trait BoundedInteger {
const TYPE_DESCRIPTION: &'static str;
const MIN: Option<i128> = None;
const MAX: Option<i128> = None;
const DEFAULT: Option<i128> = None;
// Required methods
fn get(&self) -> i128;
fn new(value: i128) -> Result<Self, BoundedIntegerError>
where Self: Sized;
// Provided method
fn validate(value: i128) -> Result<(), BoundedIntegerError> { ... }
}Required Associated Constants§
const TYPE_DESCRIPTION: &'static str
Provided Associated Constants§
const MIN: Option<i128> = None
const MAX: Option<i128> = None
const DEFAULT: Option<i128> = None
Required Methods§
fn get(&self) -> i128
fn new(value: i128) -> Result<Self, BoundedIntegerError>where
Self: Sized,
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".