pub enum DispersionError {
Constitutive(ConstitutiveError),
EmptyOrInvalidFrequencyGrid,
PassivityViolation {
omega_rad_s: f64,
omega_im_epsilon: f64,
omega_im_mu: f64,
},
KramersKronigMismatch {
omega_rad_s: f64,
analytic_re_chi: f64,
reconstructed_re_chi: f64,
abs_error: f64,
tolerance: f64,
},
NegativeDispersiveEnergyDensity {
omega_rad_s: f64,
electric_term: f64,
magnetic_term: f64,
total_j_per_m3: f64,
},
ZeroFrequencyWavelengthRejected,
NonFiniteFieldComponent,
}Expand description
Errors detected during Kramers-Kronig causality, passivity, or dispersive energy checks.
Variants§
Constitutive(ConstitutiveError)
EmptyOrInvalidFrequencyGrid
PassivityViolation
KramersKronigMismatch
Fields
NegativeDispersiveEnergyDensity
ZeroFrequencyWavelengthRejected
NonFiniteFieldComponent
Trait Implementations§
Source§impl Clone for DispersionError
impl Clone for DispersionError
impl Copy for DispersionError
Source§impl Debug for DispersionError
impl Debug for DispersionError
Source§impl From<ConstitutiveError> for DispersionError
impl From<ConstitutiveError> for DispersionError
Source§fn from(e: ConstitutiveError) -> Self
fn from(e: ConstitutiveError) -> Self
Converts to this type from the input type.
Source§impl From<DispersionError> for TransductionError
impl From<DispersionError> for TransductionError
Source§fn from(e: DispersionError) -> Self
fn from(e: DispersionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DispersionError
impl PartialEq for DispersionError
impl StructuralPartialEq for DispersionError
Auto Trait Implementations§
impl Freeze for DispersionError
impl RefUnwindSafe for DispersionError
impl Send for DispersionError
impl Sync for DispersionError
impl Unpin for DispersionError
impl UnsafeUnpin for DispersionError
impl UnwindSafe for DispersionError
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more