Struct resistor_calc::ROpBuilder[][src]

pub struct ROpBuilder { /* fields omitted */ }

Builder struct used to create f values for RCalc::calc from mathematical expressions.

Methods

impl ROpBuilder
[src]

Init a new builder.

Add a new bound to the builder, this must be an expression of the form expr op target where expr is a math expression using R1,...,Rn and supported expressions, op is one of <, >, <=, >=, ==, != or ~ and target is an f64 value. For ~ the bound will calculate the difference between the value of expr and target and add the abs error to the resulting error. For all other ops the bound will compare the value of expr to target, and if the comparison fails, it will reject the set of proposed values.

Finishes the building and converts the struct into a function suitable to be passed to calc

Trait Implementations

impl Default for ROpBuilder
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl !Send for ROpBuilder

impl !Sync for ROpBuilder