pub struct Contingency {
pub label: String,
pub actions: Vec<String>,
}Expand description
One contingency from a Contingency DATA section, with the actions of its
CTGElement SUBDATA.
Fields§
§label: StringCTGLabel, the contingency’s unique name.
actions: Vec<String>One entry per CTGElement line: the action string PowerWorld calls
“WhoAmI + action”, e.g. BRANCH 2 1 1 OPEN.
Trait Implementations§
Source§impl Clone for Contingency
impl Clone for Contingency
Source§fn clone(&self) -> Contingency
fn clone(&self) -> Contingency
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 Contingency
impl Debug for Contingency
Source§impl PartialEq for Contingency
impl PartialEq for Contingency
impl StructuralPartialEq for Contingency
Auto Trait Implementations§
impl Freeze for Contingency
impl RefUnwindSafe for Contingency
impl Send for Contingency
impl Sync for Contingency
impl Unpin for Contingency
impl UnsafeUnpin for Contingency
impl UnwindSafe for Contingency
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