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
Fields
cell: T::CellId
The renamed cell.
previous_name: T::NameType
The name to be restored when undoing.
Holds the previous name of the cell.
RenameCellInst
Fields
inst: T::CellInstId
The renamed instance.
Holds the previous name of the cell instance.
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: LayoutBase> From<HierarchyUndoOp<T>> for LayoutUndoOp<T>
impl<T: LayoutBase> From<HierarchyUndoOp<T>> for LayoutUndoOp<T>
sourcefn from(op: HierarchyUndoOp<T>) -> Self
fn from(op: HierarchyUndoOp<T>) -> Self
Converts to this type from the input type.
sourceimpl<T: NetlistBase> From<HierarchyUndoOp<T>> for NetlistUndoOp<T>
impl<T: NetlistBase> From<HierarchyUndoOp<T>> for NetlistUndoOp<T>
sourcefn from(op: HierarchyUndoOp<T>) -> Self
fn from(op: HierarchyUndoOp<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<T> RefUnwindSafe for HierarchyUndoOp<T> where
<T as HierarchyBase>::CellId: RefUnwindSafe,
<T as HierarchyBase>::CellInstId: RefUnwindSafe,
<T as HierarchyBase>::NameType: RefUnwindSafe,
impl<T> Send for HierarchyUndoOp<T> where
<T as HierarchyBase>::CellId: Send,
<T as HierarchyBase>::CellInstId: Send,
<T as HierarchyBase>::NameType: Send,
impl<T> Sync for HierarchyUndoOp<T> where
<T as HierarchyBase>::CellId: Sync,
<T as HierarchyBase>::CellInstId: Sync,
<T as HierarchyBase>::NameType: Sync,
impl<T> Unpin for HierarchyUndoOp<T> where
<T as HierarchyBase>::CellId: Unpin,
<T as HierarchyBase>::CellInstId: Unpin,
<T as HierarchyBase>::NameType: Unpin,
impl<T> UnwindSafe for HierarchyUndoOp<T> where
<T as HierarchyBase>::CellId: UnwindSafe,
<T as HierarchyBase>::CellInstId: UnwindSafe,
<T as HierarchyBase>::NameType: 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