pub trait Context<'a>: FallibleCtx<'a> + MonadContext<'a> + Send + Sync {
type D: Diagnostic<'a, Self::T>;
type LookupError: 'a + Send + Error + From<SingularError>;
// Required method
fn hash(s: &[u8]) -> Hash;
}Expand description
Execution context.
Required Associated Types§
sourcetype D: Diagnostic<'a, Self::T>
type D: Diagnostic<'a, Self::T>
See Diagnostic.
sourcetype LookupError: 'a + Send + Error + From<SingularError>
type LookupError: 'a + Send + Error + From<SingularError>
Type to represent resolution errors mainly arising in Resolver::resolve.