pub struct NodeIdOffset(/* private fields */);Expand description
The NodeId shift applied when one graph is merged into another
(Graph::merge). Translates a node id, and the pad ids on it, from the
merged-in graph’s local id space into the host graph’s. The shift is the
host’s node count at merge time, because nodes are a flat Vec indexed by
NodeId.
Implementations§
Trait Implementations§
Source§impl Clone for NodeIdOffset
impl Clone for NodeIdOffset
Source§fn clone(&self) -> NodeIdOffset
fn clone(&self) -> NodeIdOffset
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 moreimpl Copy for NodeIdOffset
Source§impl Debug for NodeIdOffset
impl Debug for NodeIdOffset
impl Eq for NodeIdOffset
Source§impl PartialEq for NodeIdOffset
impl PartialEq for NodeIdOffset
impl StructuralPartialEq for NodeIdOffset
Auto Trait Implementations§
impl Freeze for NodeIdOffset
impl RefUnwindSafe for NodeIdOffset
impl Send for NodeIdOffset
impl Sync for NodeIdOffset
impl Unpin for NodeIdOffset
impl UnsafeUnpin for NodeIdOffset
impl UnwindSafe for NodeIdOffset
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