Trait rustfst::trs::Trs

source ·
pub trait Trs<W: Semiring>: Deref<Target = [Tr<W>]> + Debug {
    // Required methods
    fn trs(&self) -> &[Tr<W>];
    fn to_trs_vec(&self) -> TrsVec<W>;
    fn shallow_clone(&self) -> Self;
}

Required Methods§

source

fn trs(&self) -> &[Tr<W>]

source

fn to_trs_vec(&self) -> TrsVec<W>

source

fn shallow_clone(&self) -> Self

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<W: Semiring> Trs<W> for TrsConst<W>

source§

impl<W: Semiring> Trs<W> for TrsVec<W>