pub struct IdRemapper { /* private fields */ }Expand description
Deterministic ID remapper (UUID v5 under a caller-provided seed).
Implementations§
Source§impl IdRemapper
impl IdRemapper
pub fn new(seed: IdRemapSeed) -> Self
pub fn remap_node(&self, id: NodeId) -> NodeId
pub fn remap_port(&self, id: PortId) -> PortId
pub fn remap_edge(&self, id: EdgeId) -> EdgeId
pub fn remap_group(&self, id: GroupId) -> GroupId
pub fn remap_note(&self, id: StickyNoteId) -> StickyNoteId
pub fn remap_symbol(&self, id: SymbolId) -> SymbolId
pub fn remap_binding(&self, id: BindingId) -> BindingId
Trait Implementations§
Source§impl Clone for IdRemapper
impl Clone for IdRemapper
Source§fn clone(&self) -> IdRemapper
fn clone(&self) -> IdRemapper
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 moreAuto Trait Implementations§
impl Freeze for IdRemapper
impl RefUnwindSafe for IdRemapper
impl Send for IdRemapper
impl Sync for IdRemapper
impl Unpin for IdRemapper
impl UnsafeUnpin for IdRemapper
impl UnwindSafe for IdRemapper
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