Enum libreda_db::undo::NetlistUndoOp
source · pub enum NetlistUndoOp<T: NetlistBase> {
HierarchyOp(HierarchyUndoOp<T>),
CreatePin(T::PinId),
RenamePin(T::PinId, T::NameType),
CreateNet(T::NetId),
ConnectPin(T::PinId, Option<T::NetId>),
ConnectPinInstance(T::PinInstId, Option<T::NetId>),
RenameNet(T::NetId, Option<T::NameType>),
}
Expand description
Undo operations on the netlist.
Variants§
HierarchyOp(HierarchyUndoOp<T>)
Undo an operation on the hierarchy.
CreatePin(T::PinId)
Undo creating a pin.
RenamePin(T::PinId, T::NameType)
Store the old pin name.
CreateNet(T::NetId)
Undo creating a net.
ConnectPin(T::PinId, Option<T::NetId>)
Store the previous net of the pin.
ConnectPinInstance(T::PinInstId, Option<T::NetId>)
Store the previous net of the pin instance.
RenameNet(T::NetId, Option<T::NameType>)
Store old name of the net.
Trait Implementations§
source§impl<T: NetlistBase> From<HierarchyUndoOp<T>> for NetlistUndoOp<T>
impl<T: NetlistBase> From<HierarchyUndoOp<T>> for NetlistUndoOp<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<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 NetlistUndoOp<T>where
<T as NetlistIds>::PinId: Freeze,
<T as HierarchyBase>::NameType: Freeze,
<T as NetlistIds>::NetId: Freeze,
<T as NetlistIds>::PinInstId: Freeze,
<T as HierarchyIds>::CellId: Freeze,
<T as HierarchyIds>::CellInstId: Freeze,
impl<T> RefUnwindSafe for NetlistUndoOp<T>where
<T as NetlistIds>::PinId: RefUnwindSafe,
<T as HierarchyBase>::NameType: RefUnwindSafe,
<T as NetlistIds>::NetId: RefUnwindSafe,
<T as NetlistIds>::PinInstId: RefUnwindSafe,
<T as HierarchyIds>::CellId: RefUnwindSafe,
<T as HierarchyIds>::CellInstId: RefUnwindSafe,
impl<T> Send for NetlistUndoOp<T>where
<T as NetlistIds>::PinId: Send,
<T as HierarchyBase>::NameType: Send,
<T as NetlistIds>::NetId: Send,
<T as NetlistIds>::PinInstId: Send,
<T as HierarchyIds>::CellId: Send,
<T as HierarchyIds>::CellInstId: Send,
impl<T> Sync for NetlistUndoOp<T>where
<T as NetlistIds>::PinId: Sync,
<T as HierarchyBase>::NameType: Sync,
<T as NetlistIds>::NetId: Sync,
<T as NetlistIds>::PinInstId: Sync,
<T as HierarchyIds>::CellId: Sync,
<T as HierarchyIds>::CellInstId: Sync,
impl<T> Unpin for NetlistUndoOp<T>where
<T as NetlistIds>::PinId: Unpin,
<T as HierarchyBase>::NameType: Unpin,
<T as NetlistIds>::NetId: Unpin,
<T as NetlistIds>::PinInstId: Unpin,
<T as HierarchyIds>::CellId: Unpin,
<T as HierarchyIds>::CellInstId: Unpin,
impl<T> UnwindSafe for NetlistUndoOp<T>where
<T as NetlistIds>::PinId: UnwindSafe,
<T as HierarchyBase>::NameType: UnwindSafe,
<T as NetlistIds>::NetId: UnwindSafe,
<T as NetlistIds>::PinInstId: UnwindSafe,
<T as HierarchyIds>::CellId: UnwindSafe,
<T as HierarchyIds>::CellInstId: 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