#[non_exhaustive]pub enum LoadVoltageError {
NonFiniteCoefficient,
InvalidNominalVoltage {
stated: f64,
},
AmbiguousNominalVoltage {
stated: f64,
base_kv: f64,
as_kv: f64,
as_pu: f64,
},
ImplausibleNominalVoltage {
stated: f64,
base_kv: f64,
},
}Expand description
Why a load’s voltage model cannot be evaluated.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonFiniteCoefficient
A stated power, coefficient, or exponent is not finite.
InvalidNominalVoltage
The stated nominal voltage is not positive and finite.
AmbiguousNominalVoltage
The stated nominal voltage reads as two different usual per unit values, in kV against the bus base and in per unit.
ImplausibleNominalVoltage
The stated nominal voltage is plausible neither in kV nor in per unit.
Trait Implementations§
Source§impl Clone for LoadVoltageError
impl Clone for LoadVoltageError
Source§impl Debug for LoadVoltageError
impl Debug for LoadVoltageError
Source§impl Display for LoadVoltageError
impl Display for LoadVoltageError
Source§impl Error for LoadVoltageError
impl Error for LoadVoltageError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for LoadVoltageError
impl PartialEq for LoadVoltageError
impl StructuralPartialEq for LoadVoltageError
Auto Trait Implementations§
impl Freeze for LoadVoltageError
impl RefUnwindSafe for LoadVoltageError
impl Send for LoadVoltageError
impl Sync for LoadVoltageError
impl Unpin for LoadVoltageError
impl UnsafeUnpin for LoadVoltageError
impl UnwindSafe for LoadVoltageError
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