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§
source§impl<T: NetlistBase> From<HierarchyUndoOp<T>> for NetlistUndoOp<T>
impl<T: NetlistBase> From<HierarchyUndoOp<T>> for NetlistUndoOp<T>
source§fn from(op: HierarchyUndoOp<T>) -> Self
fn from(op: HierarchyUndoOp<T>) -> Self
Converts to this type from the input type.
source§impl<T: L2NBase> From<NetlistUndoOp<T>> for L2NUndoOp<T>
impl<T: L2NBase> From<NetlistUndoOp<T>> for L2NUndoOp<T>
source§fn from(op: NetlistUndoOp<T>) -> Self
fn from(op: NetlistUndoOp<T>) -> Self
Converts to this type from the input type.