Accept IntoView for various functions
Not all functions accept the new syntax using plain &/&mut for component borrows in views. It would be convenient and more consistent if they did. I can find the following:
EntityStore::get_component_storage(Sub)World::split
The syntax might also be considered for fetching resources, to be consistent with components.
Oh, wow... So I was having a fiddle with this and I realised that there is no reason why I couldn't change Query itself to require IntoView rather than for<'a> View<'a>, nor why I couldnt give the filter type parameter a default value...
So it seems now you can actually write query types as Query<(&Velocity, &mut Position)>, and if you want you can construct them with Query::<(&Velocity, &mut Position)>::new(). Things get more complex if you add additional filters to the query, but for basic queries this works well.
Thanks, that works nicely. What about using this syntax for fetching resources, is that feasible?