Trait ValidateRequired

Source
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§

Source

fn is_some(&self) -> bool

Provided Methods§

Implementations on Foreign Types§

Source§

impl<T> ValidateRequired for Option<T>

Source§

fn is_some(&self) -> bool

Implementors§