pub struct Edge { /* private fields */ }Expand description
Fluent builder for a single edge declaration.
Implementations§
Source§impl Edge
impl Edge
Sourcepub fn new(idx: usize) -> Self
pub fn new(idx: usize) -> Self
Start an edge builder for edge index idx.
The index is the stable edge identifier used in descriptors. It must be unique among real (non-ingress) edges.
Sourcepub fn manager_ty<M: 'static>(self) -> Self
pub fn manager_ty<M: 'static>(self) -> Self
Set the memory manager type for this edge using a real Rust type M.
Every edge must specify a manager type. For no_std graphs, use
StaticMemoryManager<P, DEPTH> where DEPTH matches the queue’s
max_items. For std concurrent graphs, use ConcurrentMemoryManager<P>.
Sourcepub fn from(self, node: usize, port: usize) -> Self
pub fn from(self, node: usize, port: usize) -> Self
Set the upstream (node_index, port_index) for this edge.
Sourcepub fn to(self, node: usize, port: usize) -> Self
pub fn to(self, node: usize, port: usize) -> Self
Set the downstream (node_index, port_index) for this edge.
Sourcepub fn policy(self, p: EdgePolicy) -> Self
pub fn policy(self, p: EdgePolicy) -> Self
Supply a concrete EdgePolicy value (converted internally).
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl !Send for Edge
impl !Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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