Trait cddl_cat::context::LookupContext [−][src]
pub trait LookupContext {
fn lookup_rule<'a>(
&'a self,
name: &str
) -> Result<&'a RuleDef, ValidateError>;
}
Expand description
A LookupContext contains any external information required for validation.
Right now, that only includes a function that understands how to resolve
a name reference to an ivt::Rule
.
Required methods
fn lookup_rule<'a>(&'a self, name: &str) -> Result<&'a RuleDef, ValidateError>
fn lookup_rule<'a>(&'a self, name: &str) -> Result<&'a RuleDef, ValidateError>
Lookup a rule by name.