pub struct LodfRequest {
pub monitored_branch_indices: Option<Vec<usize>>,
pub outage_branch_indices: Option<Vec<usize>>,
}Expand description
Advanced request for one-shot subset LODF computation.
Fields§
§monitored_branch_indices: Option<Vec<usize>>Branch indices to monitor (rows). None monitors all branches.
outage_branch_indices: Option<Vec<usize>>Branch indices to outage (columns). None uses the monitored set.
Implementations§
Source§impl LodfRequest
impl LodfRequest
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a default request (all branches for both monitored and outage sets).
Sourcepub fn for_branches(
monitored_branch_indices: &[usize],
outage_branch_indices: &[usize],
) -> Self
pub fn for_branches( monitored_branch_indices: &[usize], outage_branch_indices: &[usize], ) -> Self
Create a request for explicit monitored and outage branch sets.
Sourcepub fn with_monitored_branches(self, monitored_branch_indices: &[usize]) -> Self
pub fn with_monitored_branches(self, monitored_branch_indices: &[usize]) -> Self
Restrict to specific monitored branches.
Sourcepub fn with_outage_branches(self, outage_branch_indices: &[usize]) -> Self
pub fn with_outage_branches(self, outage_branch_indices: &[usize]) -> Self
Restrict to specific outage branches.
Trait Implementations§
Source§impl Clone for LodfRequest
impl Clone for LodfRequest
Source§fn clone(&self) -> LodfRequest
fn clone(&self) -> LodfRequest
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 LodfRequest
impl Debug for LodfRequest
Source§impl Default for LodfRequest
impl Default for LodfRequest
Source§fn default() -> LodfRequest
fn default() -> LodfRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for LodfRequest
impl PartialEq for LodfRequest
impl StructuralPartialEq for LodfRequest
Auto Trait Implementations§
impl Freeze for LodfRequest
impl RefUnwindSafe for LodfRequest
impl Send for LodfRequest
impl Sync for LodfRequest
impl Unpin for LodfRequest
impl UnsafeUnpin for LodfRequest
impl UnwindSafe for LodfRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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