[][src]Trait cddl_cat::context::LookupContext

pub trait LookupContext {
    pub fn lookup_rule<'a>(
        &'a self,
        name: &str
    ) -> Result<&'a RuleDef, ValidateError>; }

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]

Lookup a rule by name.

Loading content...

Implementors

impl LookupContext for BasicContext[src]

Loading content...