pub struct FlowEdge {
pub capacity: i64,
pub cost: i64,
pub flow: i64,
}Expand description
Edge with capacity and cost for flow problems
Fields§
§capacity: i64Maximum flow capacity
cost: i64Cost per unit flow
flow: i64Current flow (for solutions)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlowEdge
impl<'de> Deserialize<'de> for FlowEdge
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
impl Copy for FlowEdge
Auto Trait Implementations§
impl Freeze for FlowEdge
impl RefUnwindSafe for FlowEdge
impl Send for FlowEdge
impl Sync for FlowEdge
impl Unpin for FlowEdge
impl UnsafeUnpin for FlowEdge
impl UnwindSafe for FlowEdge
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