C# 13 in the preview allows using ref struct types in the generic type or method
You can allow it with anti-constraint - allows ref struct
The compiler enforces ref safety rules on all instances of that type parameter
In this way, you can use Spans with generics, for instance.