Struct resistor_calc::RSet [−][src]
pub struct RSet(_);
A binding of values to the set of resistors in a calculation.
Methods
impl RSet
[src]
impl RSet
pub fn r(&self, idx: usize) -> f64
[src]
pub fn r(&self, idx: usize) -> f64
Retrieves the value of R{idx}, starting from R1, R2, ..., Rn
Examples
for (err, rset) in ret.iter() { println!("R1 = {}", rset.r(1)); println!("R2 = {}", rset.r(2)); }
pub fn sum(&self) -> f64
[src]
pub fn sum(&self) -> f64
Returns the sum of all the values in the set. Good for presenting overall bounds on dividers.
Trait Implementations
impl Debug for RSet
[src]
impl Debug for RSet
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for RSet
[src]
impl Display for RSet