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.
Auto Trait Implementations§
impl<T> Freeze for L2NUndoOp<T>where
<T as LayoutIds>::ShapeId: Freeze,
<T as HierarchyIds>::CellId: Freeze,
<T as HierarchyIds>::CellInstId: Freeze,
<T as HierarchyBase>::NameType: Freeze,
<T as NetlistIds>::PinId: Freeze,
<T as NetlistIds>::NetId: Freeze,
<T as NetlistIds>::PinInstId: Freeze,
<T as LayoutIds>::Coord: Freeze,
<T as LayoutIds>::LayerId: Freeze,
impl<T> RefUnwindSafe for L2NUndoOp<T>where
<T as LayoutIds>::ShapeId: RefUnwindSafe,
<T as HierarchyIds>::CellId: RefUnwindSafe,
<T as HierarchyIds>::CellInstId: RefUnwindSafe,
<T as HierarchyBase>::NameType: RefUnwindSafe,
<T as NetlistIds>::PinId: RefUnwindSafe,
<T as NetlistIds>::NetId: RefUnwindSafe,
<T as NetlistIds>::PinInstId: RefUnwindSafe,
<T as LayoutIds>::Coord: RefUnwindSafe,
<T as LayoutIds>::LayerId: RefUnwindSafe,
impl<T> Send for L2NUndoOp<T>where
<T as LayoutIds>::ShapeId: Send,
<T as HierarchyIds>::CellId: Send,
<T as HierarchyIds>::CellInstId: Send,
<T as HierarchyBase>::NameType: Send,
<T as NetlistIds>::PinId: Send,
<T as NetlistIds>::NetId: Send,
<T as NetlistIds>::PinInstId: Send,
<T as LayoutIds>::LayerId: Send,
impl<T> Sync for L2NUndoOp<T>where
<T as LayoutIds>::ShapeId: Sync,
<T as HierarchyIds>::CellId: Sync,
<T as HierarchyIds>::CellInstId: Sync,
<T as HierarchyBase>::NameType: Sync,
<T as NetlistIds>::PinId: Sync,
<T as NetlistIds>::NetId: Sync,
<T as NetlistIds>::PinInstId: Sync,
<T as LayoutIds>::LayerId: Sync,
impl<T> Unpin for L2NUndoOp<T>where
<T as LayoutIds>::ShapeId: Unpin,
<T as HierarchyIds>::CellId: Unpin,
<T as HierarchyIds>::CellInstId: Unpin,
<T as HierarchyBase>::NameType: Unpin,
<T as NetlistIds>::PinId: Unpin,
<T as NetlistIds>::NetId: Unpin,
<T as NetlistIds>::PinInstId: Unpin,
<T as LayoutIds>::Coord: Unpin,
<T as LayoutIds>::LayerId: Unpin,
impl<T> UnwindSafe for L2NUndoOp<T>where
<T as LayoutIds>::ShapeId: UnwindSafe,
<T as HierarchyIds>::CellId: UnwindSafe,
<T as HierarchyIds>::CellInstId: UnwindSafe,
<T as HierarchyBase>::NameType: UnwindSafe,
<T as NetlistIds>::PinId: UnwindSafe,
<T as NetlistIds>::NetId: UnwindSafe,
<T as NetlistIds>::PinInstId: UnwindSafe,
<T as LayoutIds>::Coord: UnwindSafe,
<T as LayoutIds>::LayerId: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more