pub trait AssertKind<'db, R> {
// Required method
fn assert_kind(self, db: &'db dyn Db) -> R;
}Expand description
Assert that self has the appropriate kind to produce an R value.
Implemented by e.g. SymGenericTerm to permit downcasting to SymTy.