Skip to main content

ZipVoltage

Trait ZipVoltage 

Source
pub trait ZipVoltage: Copy {
    // Required methods
    fn scale(self, value: Complex64) -> Complex64;
    fn magnitude_squared(self) -> f64;
}
Expand description

The nominal voltage a ZIP conversion reads: a real magnitude (f64, a zero angle reference) or a phasor (Complex64).

Required Methods§

Source

fn scale(self, value: Complex64) -> Complex64

The voltage times value.

Source

fn magnitude_squared(self) -> f64

|V|²: the square of a magnitude, or a phasor’s norm_sqr.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ZipVoltage for Complex64

Source§

impl ZipVoltage for f64

Implementors§