pub struct FlowEdgeSpec {
pub from: usize,
pub to: usize,
pub capacity: i64,
pub cost: i64,
pub label: Option<String>,
}Expand description
One directed edge in the flow network.
Fields§
§from: usize§to: usize§capacity: i64§cost: i64Per-unit routing cost.
label: Option<String>Optional human-readable label for the edge (supply route, link, etc.).
Trait Implementations§
Source§impl Clone for FlowEdgeSpec
impl Clone for FlowEdgeSpec
Source§fn clone(&self) -> FlowEdgeSpec
fn clone(&self) -> FlowEdgeSpec
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 FlowEdgeSpec
impl Debug for FlowEdgeSpec
Source§impl<'de> Deserialize<'de> for FlowEdgeSpec
impl<'de> Deserialize<'de> for FlowEdgeSpec
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 FlowEdgeSpec
impl RefUnwindSafe for FlowEdgeSpec
impl Send for FlowEdgeSpec
impl Sync for FlowEdgeSpec
impl Unpin for FlowEdgeSpec
impl UnsafeUnpin for FlowEdgeSpec
impl UnwindSafe for FlowEdgeSpec
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