pub struct NetworkFlowOutput {
pub flows: Vec<f64>,
pub total_cost: f64,
pub total_flow: f64,
}Expand description
Output for network flow
Fields§
§flows: Vec<f64>Flow on each edge (same order as input edges)
total_cost: f64Total cost of the flow
total_flow: f64Total flow achieved
Implementations§
Trait Implementations§
Source§impl Clone for NetworkFlowOutput
impl Clone for NetworkFlowOutput
Source§fn clone(&self) -> NetworkFlowOutput
fn clone(&self) -> NetworkFlowOutput
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 NetworkFlowOutput
impl Debug for NetworkFlowOutput
Source§impl<'de> Deserialize<'de> for NetworkFlowOutput
impl<'de> Deserialize<'de> for NetworkFlowOutput
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
Auto Trait Implementations§
impl Freeze for NetworkFlowOutput
impl RefUnwindSafe for NetworkFlowOutput
impl Send for NetworkFlowOutput
impl Sync for NetworkFlowOutput
impl Unpin for NetworkFlowOutput
impl UnsafeUnpin for NetworkFlowOutput
impl UnwindSafe for NetworkFlowOutput
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