pub trait ValidateRequired {
// Required method
fn is_some(&self) -> bool;
// Provided method
fn validate_required(&self) -> bool { ... }
}Expand description
Validates whether the given Option is Some
Required Methods§
Provided Methods§
fn validate_required(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".