pub struct EdgeDefinition { /* private fields */ }Expand description
Directed connection from one output port to one input port.
Implementations§
Source§impl EdgeDefinition
impl EdgeDefinition
Sourcepub const fn new(source: EdgeEndpoint, target: EdgeEndpoint) -> Self
pub const fn new(source: EdgeEndpoint, target: EdgeEndpoint) -> Self
Create an edge from an upstream endpoint to a downstream endpoint.
Sourcepub const fn with_capacity(
source: EdgeEndpoint,
target: EdgeEndpoint,
capacity: NonZeroUsize,
) -> Self
pub const fn with_capacity( source: EdgeEndpoint, target: EdgeEndpoint, capacity: NonZeroUsize, ) -> Self
Create an edge with an explicit bounded capacity.
Sourcepub const fn source(&self) -> &EdgeEndpoint
pub const fn source(&self) -> &EdgeEndpoint
Upstream output endpoint.
Sourcepub const fn target(&self) -> &EdgeEndpoint
pub const fn target(&self) -> &EdgeEndpoint
Downstream input endpoint.
Sourcepub const fn capacity(&self) -> EdgeCapacity
pub const fn capacity(&self) -> EdgeCapacity
Capacity policy for this edge.
Trait Implementations§
Source§impl Clone for EdgeDefinition
impl Clone for EdgeDefinition
Source§fn clone(&self) -> EdgeDefinition
fn clone(&self) -> EdgeDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EdgeDefinition
impl Debug for EdgeDefinition
Source§impl PartialEq for EdgeDefinition
impl PartialEq for EdgeDefinition
Source§fn eq(&self, other: &EdgeDefinition) -> bool
fn eq(&self, other: &EdgeDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EdgeDefinition
impl StructuralPartialEq for EdgeDefinition
Auto Trait Implementations§
impl Freeze for EdgeDefinition
impl RefUnwindSafe for EdgeDefinition
impl Send for EdgeDefinition
impl Sync for EdgeDefinition
impl Unpin for EdgeDefinition
impl UnsafeUnpin for EdgeDefinition
impl UnwindSafe for EdgeDefinition
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