Hello folks,
my question is:
If I have an enum:
pub enum SList<T> {
ListElement{e : T, next : Box<SList<T>>},
Null
}
I want to check if the SList Element has a specific type from the enum, somtehing like this:
let list : SList<T>;
if SList::ListElement?(list) {
do this
} else {
do that
}
Is this possible without using "match" and ask all types?