Skip to content

Commit

Permalink
Remove get_mut method from ReflectInterpolator
Browse files Browse the repository at this point in the history
  • Loading branch information
Multirious committed Mar 27, 2024
1 parent a0ea5aa commit ef5db5b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/interpolate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ impl<Item> ReflectInterpolator<Item> {
(self.get_func)(reflect_value)
}

/** Downcast a `&mut dyn Reflect` type to `&mut dyn Interpolator`.
If the type cannot be downcast, `None` is returned.*/
pub fn get_mut<'a>(
&self,
reflect_value: &'a mut dyn Reflect,
) -> Option<&'a mut dyn Interpolator<Item = Item>> {
(self.get_mut_func)(reflect_value)
}
// /** Downcast a `&mut dyn Reflect` type to `&mut dyn Interpolator`.

// If the type cannot be downcast, `None` is returned.*/
// pub fn get_mut<'a>(
// &self,
// reflect_value: &'a mut dyn Reflect,
// ) -> Option<&'a mut dyn Interpolator<Item = Item>> {
// (self.get_mut_func)(reflect_value)
// }

/** Downcast a `Box<dyn Reflect>` type to `Box<dyn Interpolator>`.
Expand Down

0 comments on commit ef5db5b

Please sign in to comment.