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
sourceimpl<T: L2NBase> From<HierarchyUndoOp<T>> for L2NUndoOp<T>
impl<T: L2NBase> From<HierarchyUndoOp<T>> for L2NUndoOp<T>
sourcefn from(op: HierarchyUndoOp<T>) -> Self
fn from(op: HierarchyUndoOp<T>) -> Self
Converts to this type from the input type.
sourceimpl<T: L2NBase> From<LayoutUndoOp<T>> for L2NUndoOp<T>
impl<T: L2NBase> From<LayoutUndoOp<T>> for L2NUndoOp<T>
sourcefn from(op: LayoutUndoOp<T>) -> Self
fn from(op: LayoutUndoOp<T>) -> Self
Converts to this type from the input type.
sourceimpl<T: L2NBase> From<NetlistUndoOp<T>> for L2NUndoOp<T>
impl<T: L2NBase> From<NetlistUndoOp<T>> for L2NUndoOp<T>
sourcefn from(op: NetlistUndoOp<T>) -> Self
fn from(op: NetlistUndoOp<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<T> RefUnwindSafe for L2NUndoOp<T> where
<T as HierarchyBase>::CellId: RefUnwindSafe,
<T as HierarchyBase>::CellInstId: RefUnwindSafe,
<T as LayoutBase>::Coord: RefUnwindSafe,
<T as LayoutBase>::LayerId: RefUnwindSafe,
<T as HierarchyBase>::NameType: RefUnwindSafe,
<T as NetlistBase>::NetId: RefUnwindSafe,
<T as NetlistBase>::PinId: RefUnwindSafe,
<T as NetlistBase>::PinInstId: RefUnwindSafe,
<T as LayoutBase>::ShapeId: RefUnwindSafe,
impl<T> Send for L2NUndoOp<T> where
<T as HierarchyBase>::CellId: Send,
<T as HierarchyBase>::CellInstId: Send,
<T as LayoutBase>::LayerId: Send,
<T as HierarchyBase>::NameType: Send,
<T as NetlistBase>::NetId: Send,
<T as NetlistBase>::PinId: Send,
<T as NetlistBase>::PinInstId: Send,
<T as LayoutBase>::ShapeId: Send,
impl<T> Sync for L2NUndoOp<T> where
<T as HierarchyBase>::CellId: Sync,
<T as HierarchyBase>::CellInstId: Sync,
<T as LayoutBase>::LayerId: Sync,
<T as HierarchyBase>::NameType: Sync,
<T as NetlistBase>::NetId: Sync,
<T as NetlistBase>::PinId: Sync,
<T as NetlistBase>::PinInstId: Sync,
<T as LayoutBase>::ShapeId: Sync,
impl<T> Unpin for L2NUndoOp<T> where
<T as HierarchyBase>::CellId: Unpin,
<T as HierarchyBase>::CellInstId: Unpin,
<T as LayoutBase>::Coord: Unpin,
<T as LayoutBase>::LayerId: Unpin,
<T as HierarchyBase>::NameType: Unpin,
<T as NetlistBase>::NetId: Unpin,
<T as NetlistBase>::PinId: Unpin,
<T as NetlistBase>::PinInstId: Unpin,
<T as LayoutBase>::ShapeId: Unpin,
impl<T> UnwindSafe for L2NUndoOp<T> where
<T as HierarchyBase>::CellId: UnwindSafe,
<T as HierarchyBase>::CellInstId: UnwindSafe,
<T as LayoutBase>::Coord: UnwindSafe,
<T as LayoutBase>::LayerId: UnwindSafe,
<T as HierarchyBase>::NameType: UnwindSafe,
<T as NetlistBase>::NetId: UnwindSafe,
<T as NetlistBase>::PinId: UnwindSafe,
<T as NetlistBase>::PinInstId: UnwindSafe,
<T as LayoutBase>::ShapeId: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more