pub struct OwnershipEntry {
pub owner: u32,
pub fraction: f64,
}Expand description
A single (owner_number, fraction) pair from PSS/E multi-owner records.
Generators, branches, and transformers support up to 4 co-owners with fractional ownership. Buses and loads carry a single entry (fraction = 1.0).
Fields§
§owner: u32Owner number, referencing an entry in Network.owners.
fraction: f64Fractional ownership (0.0..=1.0). Defaults to 1.0 for single-owner devices.
Trait Implementations§
Source§impl Clone for OwnershipEntry
impl Clone for OwnershipEntry
Source§fn clone(&self) -> OwnershipEntry
fn clone(&self) -> OwnershipEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OwnershipEntry
impl Debug for OwnershipEntry
Source§impl<'de> Deserialize<'de> for OwnershipEntry
impl<'de> Deserialize<'de> for OwnershipEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OwnershipEntry
impl PartialEq for OwnershipEntry
Source§impl Serialize for OwnershipEntry
impl Serialize for OwnershipEntry
impl StructuralPartialEq for OwnershipEntry
Auto Trait Implementations§
impl Freeze for OwnershipEntry
impl RefUnwindSafe for OwnershipEntry
impl Send for OwnershipEntry
impl Sync for OwnershipEntry
impl Unpin for OwnershipEntry
impl UnsafeUnpin for OwnershipEntry
impl UnwindSafe for OwnershipEntry
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