pub enum LayoutUndoOp<T: LayoutBase> {
    HierarchyOp(HierarchyUndoOp<T>),
    SetDbu(T::Coord),
    CreateLayer(T::LayerId),
    SetLayerName(T::LayerIdOption<T::NameType>),
    InsertShape(T::ShapeId),
    RemoveShape {
        parent_cell: T::CellId,
        layer: T::LayerId,
        geometry: Geometry<T::Coord>,
    },
    ReplaceShape(T::ShapeIdGeometry<T::Coord>),
    SetTransform(T::CellInstIdSimpleTransform<T::Coord>),
}
Expand description

Undo operation for LayoutEdit operations.

Variants

HierarchyOp(HierarchyUndoOp<T>)

Undo an operation on the cell hierarchy.

SetDbu(T::Coord)

Store previous dbu.

CreateLayer(T::LayerId)

Store ID of the created layer.

SetLayerName(T::LayerIdOption<T::NameType>)

Store previous layer name.

InsertShape(T::ShapeId)

Store id of created shape.

RemoveShape

Fields

parent_cell: T::CellId

Parent cell of the removed shape.

layer: T::LayerId

Layer of the removed shape.

geometry: Geometry<T::Coord>

Geometry of the removed shape.

Store the geometry of the previous shape.

ReplaceShape(T::ShapeIdGeometry<T::Coord>)

Store the old geometry of the shape.

SetTransform(T::CellInstIdSimpleTransform<T::Coord>)

Store the old transform.

Trait Implementations

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.