pub trait ResolvePath {
// Required methods
fn resolve_path<'p>(
&self,
path: &'p str,
func: &mut dyn FnMut(Result<&dyn Reflect, ReflectPathError<'p>>)
);
fn resolve_path_mut<'p>(
&mut self,
path: &'p str,
func: &mut dyn FnMut(Result<&mut dyn Reflect, ReflectPathError<'p>>)
);
// Provided methods
fn get_resolve_path<'p, T: Reflect>(
&self,
path: &'p str,
func: &mut dyn FnMut(Result<&T, ReflectPathError<'p>>)
) { ... }
fn get_resolve_path_mut<'p, T: Reflect>(
&mut self,
path: &'p str,
func: &mut dyn FnMut(Result<&mut T, ReflectPathError<'p>>)
) { ... }
}