FibLoader

Trait FibLoader 

pub trait FibLoader<'a, A>: ActionEncoder<'a>
where A: Action<Single>,
{ // Required method fn _load<'x, 'p, PE, Err>( &'a self, engine: &'p PE, content: &'x str, ) -> Result<((), (String, Vec<Rule<<PE as MatchEncoder<'p>>::P, A>>)), Err<Err>> where 'a: 'p, 'p: 'a, PE: PredicateEngine<'p>, Err: ParseError<&'x str>; // Provided method fn load<'x, 'p, PE>( &'a self, engine: &'p PE, content: &'x str, ) -> Result<(String, Vec<Rule<<PE as MatchEncoder<'p>>::P, A>>), Error<&'x str>> where 'a: 'p, 'p: 'a, PE: PredicateEngine<'p> { ... } }
Expand description

Load fibs from default format.

Required Methods§

fn _load<'x, 'p, PE, Err>( &'a self, engine: &'p PE, content: &'x str, ) -> Result<((), (String, Vec<Rule<<PE as MatchEncoder<'p>>::P, A>>)), Err<Err>>
where 'a: 'p, 'p: 'a, PE: PredicateEngine<'p>, Err: ParseError<&'x str>,

Provided Methods§

fn load<'x, 'p, PE>( &'a self, engine: &'p PE, content: &'x str, ) -> Result<(String, Vec<Rule<<PE as MatchEncoder<'p>>::P, A>>), Error<&'x str>>
where 'a: 'p, 'p: 'a, PE: PredicateEngine<'p>,

load fib rules from string content. Since Rule is a combination of action as A and predicate as PredicatePE::P, the lifetime of A (’a) should equals to the lifetime of P (’p)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl<'a> FibLoader<'a, TypedAction<'a>> for PortInfoBase

§

impl<'a> FibLoader<'a, usize> for PortInfoBase