pub struct EdgeBuilder<T> { /* private fields */ }Expand description
Builder for fluent edge construction
Implementations§
Source§impl<T> EdgeBuilder<T>
impl<T> EdgeBuilder<T>
Sourcepub fn connect(
self,
source: impl Into<NodeId>,
target: impl Into<NodeId>,
) -> Self
pub fn connect( self, source: impl Into<NodeId>, target: impl Into<NodeId>, ) -> Self
Connect two nodes
Sourcepub fn connect_handles(
self,
source: impl Into<NodeId>,
source_handle: impl Into<String>,
target: impl Into<NodeId>,
target_handle: impl Into<String>,
) -> Self
pub fn connect_handles( self, source: impl Into<NodeId>, source_handle: impl Into<String>, target: impl Into<NodeId>, target_handle: impl Into<String>, ) -> Self
Connect specific handles
Sourcepub fn build_with_data(self, data: T) -> Result<Edge<T>>
pub fn build_with_data(self, data: T) -> Result<Edge<T>>
Build the edge with specific data
Trait Implementations§
Source§impl<T: Debug> Debug for EdgeBuilder<T>
impl<T: Debug> Debug for EdgeBuilder<T>
Auto Trait Implementations§
impl<T> Freeze for EdgeBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for EdgeBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for EdgeBuilder<T>where
T: Send,
impl<T> Sync for EdgeBuilder<T>where
T: Sync,
impl<T> Unpin for EdgeBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for EdgeBuilder<T>where
T: UnwindSafe,
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