View Source Guesswork.Constraint.Arithmetic.Statement (Guesswork v0.8.0)
Stores an aritmmetic statement in a + b = c
, a * b = c
, or a = c
.
Summary
Types
@type t() :: %Guesswork.Constraint.Arithmetic.Statement{ a: Guesswork.Constraint.Arithmetic.value(), b: Guesswork.Constraint.Arithmetic.value() | nil, c: Guesswork.Constraint.Arithmetic.value(), constraint: Guesswork.Constraint.Comparison.constraint(), halt_on_error: boolean(), operation: Guesswork.Constraint.Arithmetic.operation() | nil }
Functions
@spec new( Guesswork.Constraint.Arithmetic.value(), Guesswork.Constraint.Comparison.constraint(), Guesswork.Constraint.Arithmetic.value() ) :: t() | :ok | :error
@spec new( Guesswork.Constraint.Arithmetic.value(), Guesswork.Constraint.Arithmetic.operation(), Guesswork.Constraint.Arithmetic.value(), Guesswork.Constraint.Comparison.constraint(), Guesswork.Constraint.Arithmetic.value() ) :: t() | :ok | :error