Trait 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

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§

Source§

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

Source§

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