pub fn peel_snapshots(db: &dyn SemanticGroup, ty: TypeId) -> (usize, TypeLongId)
Expand description
Peels all wrapping Snapshot (@
) from the type.
Returns the number of peeled snapshots and the inner type.
pub fn peel_snapshots(db: &dyn SemanticGroup, ty: TypeId) -> (usize, TypeLongId)
Peels all wrapping Snapshot (@
) from the type.
Returns the number of peeled snapshots and the inner type.