#[non_exhaustive]pub struct AcPfAssemblyOptions {
pub units: Units,
pub skip_zero_impedance: bool,
pub correct_angle_difference_bounds: bool,
}Expand description
Assembly choices for an AC power flow instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.units: UnitsPower and admittance scaling of the prepared values.
skip_zero_impedance: boolSkip non-self-loop branches with r² + x² = 0.
correct_angle_difference_bounds: boolApply PowerModels’ ±60 degree correction to unconstrained or unusable branch angle difference intervals in the prepared arrays.
Implementations§
Source§impl AcPfAssemblyOptions
impl AcPfAssemblyOptions
pub const fn with_units(self, units: Units) -> Self
pub const fn with_skip_zero_impedance(self, skip: bool) -> Self
pub const fn with_correct_angle_difference_bounds(self, correct: bool) -> Self
Trait Implementations§
Source§impl Clone for AcPfAssemblyOptions
impl Clone for AcPfAssemblyOptions
Source§fn clone(&self) -> AcPfAssemblyOptions
fn clone(&self) -> AcPfAssemblyOptions
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 Copy for AcPfAssemblyOptions
Source§impl Debug for AcPfAssemblyOptions
impl Debug for AcPfAssemblyOptions
Source§impl Default for AcPfAssemblyOptions
impl Default for AcPfAssemblyOptions
impl Eq for AcPfAssemblyOptions
Source§impl PartialEq for AcPfAssemblyOptions
impl PartialEq for AcPfAssemblyOptions
Source§fn eq(&self, other: &AcPfAssemblyOptions) -> bool
fn eq(&self, other: &AcPfAssemblyOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AcPfAssemblyOptions
Auto Trait Implementations§
impl Freeze for AcPfAssemblyOptions
impl RefUnwindSafe for AcPfAssemblyOptions
impl Send for AcPfAssemblyOptions
impl Sync for AcPfAssemblyOptions
impl Unpin for AcPfAssemblyOptions
impl UnsafeUnpin for AcPfAssemblyOptions
impl UnwindSafe for AcPfAssemblyOptions
Blanket Implementations§
impl<T> Allocation for T
impl<T> Boilerplate for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more