pub struct BrandedNodeId<'id> { /* private fields */ }Expand description
A Node identifier that is strongly coupled to the MutableGraph it belongs into.
You can obtain one using MutableGraph::fetch_id_for_data.
You can use this one to add nodes and edges to the graph.
In case you are using multiple graphs and run into liftime errors check if you’re mixing ids from multiple graphs.
Trait Implementations§
Source§impl<'id> Clone for BrandedNodeId<'id>
impl<'id> Clone for BrandedNodeId<'id>
Source§fn clone(&self) -> BrandedNodeId<'id>
fn clone(&self) -> BrandedNodeId<'id>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Hash for BrandedNodeId<'_>
impl Hash for BrandedNodeId<'_>
Source§impl Ord for BrandedNodeId<'_>
impl Ord for BrandedNodeId<'_>
Source§impl PartialEq for BrandedNodeId<'_>
impl PartialEq for BrandedNodeId<'_>
Source§impl PartialOrd for BrandedNodeId<'_>
impl PartialOrd for BrandedNodeId<'_>
impl<'id> Copy for BrandedNodeId<'id>
impl Eq for BrandedNodeId<'_>
Auto Trait Implementations§
impl<'id> Freeze for BrandedNodeId<'id>
impl<'id> RefUnwindSafe for BrandedNodeId<'id>
impl<'id> !Send for BrandedNodeId<'id>
impl<'id> !Sync for BrandedNodeId<'id>
impl<'id> Unpin for BrandedNodeId<'id>
impl<'id> UnwindSafe for BrandedNodeId<'id>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.