pub struct WaveVariables<T: Transcendental> {
pub a: T,
pub b: T,
}Expand description
Wave variables: a (incident), b (reflected)
Fields§
§a: TIncident wave
b: TReflected wave
Implementations§
Source§impl<T: Transcendental> WaveVariables<T>
impl<T: Transcendental> WaveVariables<T>
Sourcepub fn to_voltage_current(&self, port_resistance: T) -> (T, T)
pub fn to_voltage_current(&self, port_resistance: T) -> (T, T)
Compute voltage and current from wave variables
Sourcepub fn from_voltage_current(v: T, i: T, port_resistance: T) -> Self
pub fn from_voltage_current(v: T, i: T, port_resistance: T) -> Self
Compute wave variables from voltage and current
Trait Implementations§
Source§impl<T: Clone + Transcendental> Clone for WaveVariables<T>
impl<T: Clone + Transcendental> Clone for WaveVariables<T>
Source§fn clone(&self) -> WaveVariables<T>
fn clone(&self) -> WaveVariables<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy + Transcendental> Copy for WaveVariables<T>
Source§impl<T: Debug + Transcendental> Debug for WaveVariables<T>
impl<T: Debug + Transcendental> Debug for WaveVariables<T>
Source§impl<T: Transcendental> Default for WaveVariables<T>
impl<T: Transcendental> Default for WaveVariables<T>
Auto Trait Implementations§
impl<T> Freeze for WaveVariables<T>where
T: Freeze,
impl<T> RefUnwindSafe for WaveVariables<T>where
T: RefUnwindSafe,
impl<T> Send for WaveVariables<T>
impl<T> Sync for WaveVariables<T>
impl<T> Unpin for WaveVariables<T>where
T: Unpin,
impl<T> UnsafeUnpin for WaveVariables<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WaveVariables<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more