[−][src]Struct cddl_cat::context::BasicContext
A simple context that owns a set of rules and can lookup rules by name.
Fields
rules: RulesByName
Methods
impl BasicContext
[src]
pub fn new(rules: RulesByName) -> BasicContext
[src]
Create a new BasicContext from a rules map.
Trait Implementations
impl Context for BasicContext
[src]
fn lookup_rule<'a>(&'a self, name: &str) -> Result<&'a Node, ValidateError>
[src]
Auto Trait Implementations
impl RefUnwindSafe for BasicContext
impl Send for BasicContext
impl Sync for BasicContext
impl Unpin for BasicContext
impl UnwindSafe for BasicContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,