TreeMapperTrait

Trait TreeMapperTrait 

Source
pub trait TreeMapperTrait<TOutput> {
    type SeqMapper: Mapper<Seq, TOutput>;
    type ConcMapper: Mapper<Conc, TOutput>;
    type MoveToMapper: Mapper<MoveTo, TOutput>;
    type SearchAreaMapper: Mapper<SearchArea, TOutput>;

    // Required method
    fn map<'a>(&'a self, t: Node) -> BoxFuture<'a, Result<TOutput>>;

    // Provided method
    fn map_direct(&self, t: Node) -> Result<TOutput> { ... }
}
Expand description

Base trait for a TreeMapper

Required Associated Types§

Source

type SeqMapper: Mapper<Seq, TOutput>

Mapper for sequential nodes

Source

type ConcMapper: Mapper<Conc, TOutput>

Mapper for concurrent nodes

Source

type MoveToMapper: Mapper<MoveTo, TOutput>

Mapper for move_to nodes

Source

type SearchAreaMapper: Mapper<SearchArea, TOutput>

Mapper for search area nodes

Required Methods§

Source

fn map<'a>(&'a self, t: Node) -> BoxFuture<'a, Result<TOutput>>

Map the tst

Provided Methods§

Source

fn map_direct(&self, t: Node) -> Result<TOutput>

Map the tst and block

Implementors§

Source§

impl<TOutput, TNoopMapper, TSeqMapper, TConcMapper, TMoveToMapper, TSearchAreaMapper> TreeMapperTrait<TOutput> for TreeMapper<TOutput, TNoopMapper, TSeqMapper, TConcMapper, TMoveToMapper, TSearchAreaMapper>
where TNoopMapper: Mapper<Noop, TOutput>, TSeqMapper: Mapper<Seq, TOutput>, TConcMapper: Mapper<Conc, TOutput>, TMoveToMapper: Mapper<MoveTo, TOutput>, TSearchAreaMapper: Mapper<SearchArea, TOutput>,

Source§

type SeqMapper = TSeqMapper

Source§

type ConcMapper = TConcMapper

Source§

type MoveToMapper = TMoveToMapper

Source§

type SearchAreaMapper = TSearchAreaMapper