Enum libreda_db::undo::NetlistUndoOp
source · [−]pub enum NetlistUndoOp<T: NetlistBase> {
HierarchyOp(HierarchyUndoOp<T>),
CreatePin(T::PinId),
RenamePin(T::PinId, T::NameType),
CreateNet(T::NetId),
ConnectPin(T::PinId, Option<T::NetId>),
ConnectPinInstance(T::PinInstId, Option<T::NetId>),
RenameNet(T::NetId, Option<T::NameType>),
}
Expand description
Undo operations on the netlist.
Variants
HierarchyOp(HierarchyUndoOp<T>)
Undo an operation on the hierarchy.
CreatePin(T::PinId)
Undo creating a pin.
RenamePin(T::PinId, T::NameType)
Store the old pin name.
CreateNet(T::NetId)
Undo creating a net.
ConnectPin(T::PinId, Option<T::NetId>)
Store the previous net of the pin.
ConnectPinInstance(T::PinInstId, Option<T::NetId>)
Store the previous net of the pin instance.
RenameNet(T::NetId, Option<T::NameType>)
Store old name of the net.
Trait Implementations
sourceimpl<T: NetlistBase> From<HierarchyUndoOp<T>> for NetlistUndoOp<T>
impl<T: NetlistBase> From<HierarchyUndoOp<T>> for NetlistUndoOp<T>
sourcefn from(op: HierarchyUndoOp<T>) -> Self
fn from(op: HierarchyUndoOp<T>) -> Self
Converts to this type from the input type.
sourceimpl<T: L2NBase> From<NetlistUndoOp<T>> for L2NUndoOp<T>
impl<T: L2NBase> From<NetlistUndoOp<T>> for L2NUndoOp<T>
sourcefn from(op: NetlistUndoOp<T>) -> Self
fn from(op: NetlistUndoOp<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<T> RefUnwindSafe for NetlistUndoOp<T> where
<T as HierarchyBase>::CellId: RefUnwindSafe,
<T as HierarchyBase>::CellInstId: RefUnwindSafe,
<T as HierarchyBase>::NameType: RefUnwindSafe,
<T as NetlistBase>::NetId: RefUnwindSafe,
<T as NetlistBase>::PinId: RefUnwindSafe,
<T as NetlistBase>::PinInstId: RefUnwindSafe,
impl<T> Send for NetlistUndoOp<T> where
<T as HierarchyBase>::CellId: Send,
<T as HierarchyBase>::CellInstId: Send,
<T as HierarchyBase>::NameType: Send,
<T as NetlistBase>::NetId: Send,
<T as NetlistBase>::PinId: Send,
<T as NetlistBase>::PinInstId: Send,
impl<T> Sync for NetlistUndoOp<T> where
<T as HierarchyBase>::CellId: Sync,
<T as HierarchyBase>::CellInstId: Sync,
<T as HierarchyBase>::NameType: Sync,
<T as NetlistBase>::NetId: Sync,
<T as NetlistBase>::PinId: Sync,
<T as NetlistBase>::PinInstId: Sync,
impl<T> Unpin for NetlistUndoOp<T> where
<T as HierarchyBase>::CellId: Unpin,
<T as HierarchyBase>::CellInstId: Unpin,
<T as HierarchyBase>::NameType: Unpin,
<T as NetlistBase>::NetId: Unpin,
<T as NetlistBase>::PinId: Unpin,
<T as NetlistBase>::PinInstId: Unpin,
impl<T> UnwindSafe for NetlistUndoOp<T> where
<T as HierarchyBase>::CellId: UnwindSafe,
<T as HierarchyBase>::CellInstId: UnwindSafe,
<T as HierarchyBase>::NameType: UnwindSafe,
<T as NetlistBase>::NetId: UnwindSafe,
<T as NetlistBase>::PinId: UnwindSafe,
<T as NetlistBase>::PinInstId: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more