use failure::Fallible;
use crate::algorithms::StateMapper;
use crate::fst_traits::MutableFst;
pub struct IdentityStateMapper {}
impl<F: MutableFst> StateMapper<F> for IdentityStateMapper {
fn map_final_weight(&self, _weight: Option<&mut F::W>) -> Fallible<()> {
Ok(())
}
fn map_arcs(&self, _fst: &mut F, _state: usize) -> Fallible<()> {
Ok(())
}
}