Trait IfEq
ifeq
pub trait IfEq<T> { fn if_eq(&self, is: T) -> bool; }
If variable value is exactly the given parameter, returns true, or false.
fn if_eq(&self, is: T) -> bool
impl<T> IfEq<T> for T where T: PartialEq,