Enum libreda_db::undo::HierarchyUndoOp
source · pub enum HierarchyUndoOp<T: HierarchyBase> {
CreateCell(T::CellId),
CreateCellInstance(T::CellInstId),
RenameCell {
cell: T::CellId,
previous_name: T::NameType,
},
RenameCellInst {
inst: T::CellInstId,
previous_name: Option<T::NameType>,
},
}
Expand description
Undo operation for hierarchy operations.
Variants§
CreateCell(T::CellId)
Undo creating a cell.
CreateCellInstance(T::CellInstId)
Undo creating a cell instance.
RenameCell
Holds the previous name of the cell.
Fields
RenameCellInst
Holds the previous name of the cell instance.
Fields
§
inst: T::CellInstId
The renamed instance.
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: LayoutBase> From<HierarchyUndoOp<T>> for LayoutUndoOp<T>
impl<T: LayoutBase> From<HierarchyUndoOp<T>> for LayoutUndoOp<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: 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.
Auto Trait Implementations§
impl<T> Freeze for HierarchyUndoOp<T>where
<T as HierarchyIds>::CellId: Freeze,
<T as HierarchyIds>::CellInstId: Freeze,
<T as HierarchyBase>::NameType: Freeze,
impl<T> RefUnwindSafe for HierarchyUndoOp<T>where
<T as HierarchyIds>::CellId: RefUnwindSafe,
<T as HierarchyIds>::CellInstId: RefUnwindSafe,
<T as HierarchyBase>::NameType: RefUnwindSafe,
impl<T> Send for HierarchyUndoOp<T>where
<T as HierarchyIds>::CellId: Send,
<T as HierarchyIds>::CellInstId: Send,
<T as HierarchyBase>::NameType: Send,
impl<T> Sync for HierarchyUndoOp<T>where
<T as HierarchyIds>::CellId: Sync,
<T as HierarchyIds>::CellInstId: Sync,
<T as HierarchyBase>::NameType: Sync,
impl<T> Unpin for HierarchyUndoOp<T>where
<T as HierarchyIds>::CellId: Unpin,
<T as HierarchyIds>::CellInstId: Unpin,
<T as HierarchyBase>::NameType: Unpin,
impl<T> UnwindSafe for HierarchyUndoOp<T>where
<T as HierarchyIds>::CellId: UnwindSafe,
<T as HierarchyIds>::CellInstId: UnwindSafe,
<T as HierarchyBase>::NameType: 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