Rename get_id_mut (#332)
Renamed to get_with_id_mut to be parallel with get_with_id.
This commit is contained in:
parent
4e587db775
commit
a1e254d075
@ -61,10 +61,10 @@ impl<T: Resource> Assets<T> {
|
||||
}
|
||||
|
||||
pub fn get_with_id(&self, id: HandleId) -> Option<&T> {
|
||||
self.assets.get(&Handle::from_id(id))
|
||||
self.get(&Handle::from_id(id))
|
||||
}
|
||||
|
||||
pub fn get_id_mut(&mut self, id: HandleId) -> Option<&mut T> {
|
||||
pub fn get_with_id_mut(&mut self, id: HandleId) -> Option<&mut T> {
|
||||
self.get_mut(&Handle::from_id(id))
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user