Enum libreda_db::undo::HierarchyUndoOp[][src]

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.

Tuple Fields of CreateCell

0: T::CellId
CreateCellInstance(T::CellInstId)

Undo creating a cell instance.

Tuple Fields of CreateCellInstance

0: T::CellInstId
RenameCell

Holds the previous name of the cell.

Fields of RenameCell

cell: T::CellId

The renamed cell.

previous_name: T::NameType

The name to be restored when undoing.

RenameCellInst

Holds the previous name of the cell instance.

Fields of RenameCellInst

inst: T::CellInstId

The renamed instance.

previous_name: Option<T::NameType>

The name to be restored when undoing.

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

Performs the conversion.

Performs the conversion.

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.