pub trait ValueMeta {
    fn propagate_values(&mut self, env: &mut ValueEnvironment) -> bool;
    fn is_constant(&self) -> bool;
    fn is_boolean(&self) -> bool;
    fn is_field_element(&self) -> bool;
    fn value(&self) -> Option<&ValueReduction>;
}

Required Methods

Propagate variable values defined by the environment to each sub-node. The method returns true if the node (or a sub-node) was updated.

Returns true if the node reduces to a constant value.

Returns true if the node reduces to a boolean value.

Returns true if the node reduces to a field element.

Returns the value if the node reduces to a constant, and None otherwise.

Implementors