pub struct ResolverRegistry { /* private fields */ }Implementations§
Source§impl ResolverRegistry
impl ResolverRegistry
pub fn new() -> Self
pub fn register(&mut self, resolver: Box<dyn ResolverDefinition>)
pub fn resolver(&self, name: &str) -> Option<&dyn ResolverDefinition>
pub fn definitions(&self) -> impl Iterator<Item = &dyn ResolverDefinition>
pub fn is_output_type(&self, type_name: &str) -> bool
pub fn evaluate_computed( &self, resolver: &str, method: &str, args: &[Value], ) -> Result<Value, Box<dyn Error>>
pub fn validate_computed_expr( &self, expr: &ComputedExpr, errors: &mut Vec<String>, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResolverRegistry
impl !RefUnwindSafe for ResolverRegistry
impl Send for ResolverRegistry
impl Sync for ResolverRegistry
impl Unpin for ResolverRegistry
impl UnsafeUnpin for ResolverRegistry
impl !UnwindSafe for ResolverRegistry
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