Trait TrFilter

Source
pub trait TrFilter<S: Semiring>:
    Clone
    + Debug
    + PartialEq {
    // Required method
    fn keep(&self, tr: &Tr<S>) -> bool;
}
Expand description

Base trait to restrict which trs are traversed in an FST.

Required Methods§

Source

fn keep(&self, tr: &Tr<S>) -> bool

If true, Tr should be kept, else Tr should be ignored.

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§