Enum libreda_db::undo::HierarchyUndoOp
source · pub enum HierarchyUndoOp<T: HierarchyBase> {
CreateCell(T::CellId),
CreateCellInstance(T::CellInstId),
RenameCell {
cell: T::CellId,
previous_name: T::NameType,
},
RenameCellInst {
inst: T::CellInstId,
previous_name: Option<T::NameType>,
},
}Expand description
Undo operation for hierarchy operations.
Variants§
CreateCell(T::CellId)
Undo creating a cell.
CreateCellInstance(T::CellInstId)
Undo creating a cell instance.
RenameCell
Fields
Holds the previous name of the cell.
RenameCellInst
Fields
§
inst: T::CellInstIdThe renamed instance.
Holds the previous name of the cell instance.
Trait Implementations§
source§impl<T: L2NBase> From<HierarchyUndoOp<T>> for L2NUndoOp<T>
impl<T: L2NBase> From<HierarchyUndoOp<T>> for L2NUndoOp<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: LayoutBase> From<HierarchyUndoOp<T>> for LayoutUndoOp<T>
impl<T: LayoutBase> From<HierarchyUndoOp<T>> for LayoutUndoOp<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: 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.