pub struct FnResolver<F>where
F: Fn(&[String], &HashMap<String, String>, &ResolverContext) -> Result<ResolvedValue> + Send + Sync,{ /* private fields */ }Expand description
A simple function-based resolver
Implementations§
Trait Implementations§
Source§impl<F> Resolver for FnResolver<F>where
F: Fn(&[String], &HashMap<String, String>, &ResolverContext) -> Result<ResolvedValue> + Send + Sync,
impl<F> Resolver for FnResolver<F>where
F: Fn(&[String], &HashMap<String, String>, &ResolverContext) -> Result<ResolvedValue> + Send + Sync,
Auto Trait Implementations§
impl<F> Freeze for FnResolver<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnResolver<F>where
F: RefUnwindSafe,
impl<F> Send for FnResolver<F>
impl<F> Sync for FnResolver<F>
impl<F> Unpin for FnResolver<F>where
F: Unpin,
impl<F> UnwindSafe for FnResolver<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more