Trait good_lp::variable::FormatWithVars[][src]

pub trait FormatWithVars<F> {
    fn format_with<FUN>(
        &self,
        f: &mut Formatter<'_>,
        variable_format: FUN
    ) -> Result
    where
        FUN: Fn(&mut Formatter<'_>, Variable<F>) -> Result
; fn format_debug(&self, f: &mut Formatter<'_>) -> Result { ... } }

An element that can be displayed if you give a variable display function

Required methods

fn format_with<FUN>(
    &self,
    f: &mut Formatter<'_>,
    variable_format: FUN
) -> Result where
    FUN: Fn(&mut Formatter<'_>, Variable<F>) -> Result
[src]

Write the element to the formatter. See std::fmt::Display

Loading content...

Provided methods

fn format_debug(&self, f: &mut Formatter<'_>) -> Result[src]

Write the elements, naming the variables v0, v1, ... vn

Loading content...

Implementors

impl<F> FormatWithVars<F> for Constraint<F>[src]

impl<F> FormatWithVars<F> for Expression<F>[src]

Loading content...