Enum libreda_db::undo::L2NUndoOp
source · pub enum L2NUndoOp<T: L2NBase> {
HierarchyOp(HierarchyUndoOp<T>),
NetlistOp(NetlistUndoOp<T>),
LayoutOp(LayoutUndoOp<T>),
SetNetOfShape {
shape_id: T::ShapeId,
previous_net: Option<T::NetId>,
},
SetPinOfShape {
shape_id: T::ShapeId,
previous_pin: Option<T::PinId>,
},
}Expand description
Undo operation for L2NEdit operations.
Variants§
HierarchyOp(HierarchyUndoOp<T>)
Undo an operation on the cell hierarchy.
NetlistOp(NetlistUndoOp<T>)
Undo a netlist operation.
LayoutOp(LayoutUndoOp<T>)
Undo a layout operation.
SetNetOfShape
Undo setting the net of a shape.
SetPinOfShape
Undo setting the pin of a shape.
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: L2NBase> From<LayoutUndoOp<T>> for L2NUndoOp<T>
impl<T: L2NBase> From<LayoutUndoOp<T>> for L2NUndoOp<T>
source§fn from(op: LayoutUndoOp<T>) -> Self
fn from(op: LayoutUndoOp<T>) -> Self
Converts to this type from the input type.
source§impl<T: L2NBase> From<NetlistUndoOp<T>> for L2NUndoOp<T>
impl<T: L2NBase> From<NetlistUndoOp<T>> for L2NUndoOp<T>
source§fn from(op: NetlistUndoOp<T>) -> Self
fn from(op: NetlistUndoOp<T>) -> Self
Converts to this type from the input type.