Trait Is

Source
pub trait Is<T> {
    // Required method
    fn is(&self, is: T) -> bool;
}
Expand description

If variable is equal with the given parameter returns true, otherwise false.

Required Methods§

Source

fn is(&self, is: T) -> bool

Implementors§

Source§

impl<T> Is<T> for T
where T: PartialEq,