Trait FormattedOutput

Source
pub trait FormattedOutput: Sized {
    // Required methods
    fn is_alpha(&self) -> bool;
    fn ocaml(&self, cache: &mut HashMap<CacheId, Self>) -> String;
    fn latex(&self, cache: &mut HashMap<CacheId, Self>) -> String;
    fn text(&self, cache: &mut HashMap<CacheId, Self>) -> String;
}

Required Methods§

Source

fn is_alpha(&self) -> bool

Source

fn ocaml(&self, cache: &mut HashMap<CacheId, Self>) -> String

Source

fn latex(&self, cache: &mut HashMap<CacheId, Self>) -> String

Source

fn text(&self, cache: &mut HashMap<CacheId, Self>) -> String

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 FormattedOutput for Column

Source§

impl<'a, ChallengeTerm> FormattedOutput for ChallengeTerm
where ChallengeTerm: AlphaChallengeTerm<'a>,

Source§

impl<'a, F, Column: FormattedOutput + Debug + Clone, ChallengeTerm> FormattedOutput for Expr<ConstantExpr<F, ChallengeTerm>, Column>
where F: PrimeField, ChallengeTerm: AlphaChallengeTerm<'a>,

Source§

impl<'a, F: PrimeField, ChallengeTerm> FormattedOutput for ConstantExprInner<F, ChallengeTerm>
where ChallengeTerm: AlphaChallengeTerm<'a>,

Source§

impl<Column: FormattedOutput + Debug> FormattedOutput for Variable<Column>

Source§

impl<F: PrimeField> FormattedOutput for ConstantTerm<F>

Source§

impl<T: FormattedOutput + Clone> FormattedOutput for Operations<T>