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

cell: T::CellId

The renamed cell.

previous_name: T::NameType

The name to be restored when undoing.

Holds the previous name of the cell.

RenameCellInst

Fields

inst: T::CellInstId

The renamed instance.

previous_name: Option<T::NameType>

The name to be restored when undoing.

Holds the previous name of the cell instance.

Trait Implementations

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.