[−][src]Trait cddl_cat::context::LookupContext
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
pub fn lookup_rule<'a>(
&'a self,
name: &str
) -> Result<&'a RuleDef, ValidateError>
[src]
&'a self,
name: &str
) -> Result<&'a RuleDef, ValidateError>
Lookup a rule by name.
Implementors
impl LookupContext for BasicContext
[src]
pub fn lookup_rule<'a>(
&'a self,
name: &str
) -> Result<&'a RuleDef, ValidateError>
[src]
&'a self,
name: &str
) -> Result<&'a RuleDef, ValidateError>