Enum libreda_db::undo::LayoutUndoOp[][src]

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.

Tuple Fields of HierarchyOp

0: HierarchyUndoOp<T>
SetDbu(T::Coord)

Store previous dbu.

Tuple Fields of SetDbu

0: T::Coord
CreateLayer(T::LayerId)

Store ID of the created layer.

Tuple Fields of CreateLayer

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

Store previous layer name.

Tuple Fields of SetLayerName

0: T::LayerId1: Option<T::NameType>
InsertShape(T::ShapeId)

Store id of created shape.

Tuple Fields of InsertShape

0: T::ShapeId
RemoveShape

Store the geometry of the previous shape.

Fields of RemoveShape

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.

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

Store the old geometry of the shape.

Tuple Fields of ReplaceShape

0: T::ShapeId1: Geometry<T::Coord>
SetTransform(T::CellInstIdSimpleTransform<T::Coord>)

Store the old transform.

Tuple Fields of SetTransform

0: T::CellInstId1: SimpleTransform<T::Coord>

Trait Implementations

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.