pub enum FlowDirection {
Source,
Sink,
SourceAndSink,
NotDefined,
}Expand description
Which way material or energy moves through a port.
A missing direction is FlowDirection::NotDefined rather than an assumed
default. Guessing Source would invent a direction the file never stated
and orient edges that have no stated orientation, which is worse than
admitting the network is partly undirected.
Variants§
Source
Material leaves the element through this port.
Sink
Material enters the element through this port.
SourceAndSink
Bidirectional.
NotDefined
Stated as NOTDEFINED, or not stated at all.
Implementations§
Source§impl FlowDirection
impl FlowDirection
Trait Implementations§
Source§impl Clone for FlowDirection
impl Clone for FlowDirection
impl Copy for FlowDirection
Source§impl Debug for FlowDirection
impl Debug for FlowDirection
impl Eq for FlowDirection
Source§impl Ord for FlowDirection
impl Ord for FlowDirection
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FlowDirection
impl PartialEq for FlowDirection
Source§impl PartialOrd for FlowDirection
impl PartialOrd for FlowDirection
impl StructuralPartialEq for FlowDirection
Auto Trait Implementations§
impl Freeze for FlowDirection
impl RefUnwindSafe for FlowDirection
impl Send for FlowDirection
impl Sync for FlowDirection
impl Unpin for FlowDirection
impl UnsafeUnpin for FlowDirection
impl UnwindSafe for FlowDirection
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