There's a good chance I can make use of str::substr_range on a current project of mine. I'll be storing some substrings from str::split, and now I can store the original string and ranges of indices into it instead of making an owned string for every substring.
4 replies
Oh! The algebraic methods will be nice at work.
Yeah, those look really useful for gamedev or simulations, where you need the speed and don't particularly care that it's always the same result...
Quick ! Someone should create a floating-point type where basic maths ops delegate to these new things.
There's a good chance I can make use of str::substr_range on a current project of mine. I'll be storing some substrings from str::split, and now I can store the original string and ranges of indices into it instead of making an owned string for every substring.