Hi, I have an enum like this
pub enum Complicated {
Boolean(bool),
Integer(i32),
ArrayOfInteger(Vec<i32>)
}
And a method
fn is_boolean(&self, v: &Complicated)->bool{
// I want to check if v is of type boolean or not
// here
}
how do I complete the is_boolean function? Also I need to implement is_integer and is_array_of_integer method.