pub struct NodeGraphLookups { /* private fields */ }Implementations§
Source§impl NodeGraphLookups
impl NodeGraphLookups
pub fn apply_transaction(&mut self, graph: &Graph, tx: &GraphTransaction)
Source§impl NodeGraphLookups
impl NodeGraphLookups
pub fn connections( &self, key: ConnectionLookupKey, ) -> Option<&HashMap<EdgeId, HandleConnection>>
pub fn connections_for_node( &self, node: NodeId, ) -> Option<&HashMap<EdgeId, HandleConnection>>
pub fn connections_for_node_side( &self, node: NodeId, side: ConnectionSide, ) -> Option<&HashMap<EdgeId, HandleConnection>>
pub fn connections_for_port( &self, node: NodeId, side: ConnectionSide, port: PortId, ) -> Option<&HashMap<EdgeId, HandleConnection>>
pub fn connection_for_edge(&self, edge: EdgeId) -> Option<HandleConnection>
Source§impl NodeGraphLookups
impl NodeGraphLookups
pub fn parent_for_node(&self, node: NodeId) -> Option<GroupId>
pub fn child_nodes_for_parent(&self, parent: GroupId) -> Vec<NodeId>
pub fn child_nodes_by_parent(&self) -> BTreeMap<GroupId, Vec<NodeId>>
pub fn root_nodes(&self) -> Vec<NodeId>
Source§impl NodeGraphLookups
impl NodeGraphLookups
pub fn rebuild_from(&mut self, graph: &Graph)
Source§impl NodeGraphLookups
impl NodeGraphLookups
pub fn node_count(&self) -> usize
pub fn edge_count(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Debug for NodeGraphLookups
impl Debug for NodeGraphLookups
Source§impl Default for NodeGraphLookups
impl Default for NodeGraphLookups
Source§fn default() -> NodeGraphLookups
fn default() -> NodeGraphLookups
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NodeGraphLookups
impl RefUnwindSafe for NodeGraphLookups
impl Send for NodeGraphLookups
impl Sync for NodeGraphLookups
impl Unpin for NodeGraphLookups
impl UnsafeUnpin for NodeGraphLookups
impl UnwindSafe for NodeGraphLookups
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