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§
Sourcetype ConcMapper: Mapper<Conc, TOutput>
type ConcMapper: Mapper<Conc, TOutput>
Mapper for concurrent nodes
Sourcetype MoveToMapper: Mapper<MoveTo, TOutput>
type MoveToMapper: Mapper<MoveTo, TOutput>
Mapper for move_to nodes
Sourcetype SearchAreaMapper: Mapper<SearchArea, TOutput>
type SearchAreaMapper: Mapper<SearchArea, TOutput>
Mapper for search area nodes
Required Methods§
Provided Methods§
Sourcefn map_direct(&self, t: Node) -> Result<TOutput>
fn map_direct(&self, t: Node) -> Result<TOutput>
Map the tst and block