pub struct Resistor<T: Transcendental> { /* private fields */ }Expand description
Resistor WDF element
Implementations§
Source§impl<T: Transcendental> Resistor<T>
impl<T: Transcendental> Resistor<T>
Sourcepub fn resistance(&self) -> T
pub fn resistance(&self) -> T
Get resistance value
Sourcepub fn process_incident_vector(
&mut self,
_a: ScalarVector4<T>,
) -> ScalarVector4<T>
pub fn process_incident_vector( &mut self, _a: ScalarVector4<T>, ) -> ScalarVector4<T>
Process 4 incident waves at once — SIMD vector path.
Trait Implementations§
impl<T: Copy + Transcendental> Copy for Resistor<T>
Source§impl<T: Transcendental> WdfElement<T> for Resistor<T>
impl<T: Transcendental> WdfElement<T> for Resistor<T>
Source§fn port_resistance(&self) -> T
fn port_resistance(&self) -> T
Port resistance
Source§fn process_incident(&mut self, _a: T) -> T
fn process_incident(&mut self, _a: T) -> T
Process incident wave, return reflected wave
Source§fn update_state(&mut self)
fn update_state(&mut self)
Update internal state (called after wave computation)
Auto Trait Implementations§
impl<T> Freeze for Resistor<T>where
T: Freeze,
impl<T> RefUnwindSafe for Resistor<T>where
T: RefUnwindSafe,
impl<T> Send for Resistor<T>
impl<T> Sync for Resistor<T>
impl<T> Unpin for Resistor<T>where
T: Unpin,
impl<T> UnsafeUnpin for Resistor<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Resistor<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