Enum libreda_db::undo::LayoutUndoOp
source · [−]pub enum LayoutUndoOp<T: LayoutBase> {
HierarchyOp(HierarchyUndoOp<T>),
SetDbu(T::Coord),
CreateLayer(T::LayerId),
SetLayerName(T::LayerId, Option<T::NameType>),
InsertShape(T::ShapeId),
RemoveShape {
parent_cell: T::CellId,
layer: T::LayerId,
geometry: Geometry<T::Coord>,
},
ReplaceShape(T::ShapeId, Geometry<T::Coord>),
SetTransform(T::CellInstId, SimpleTransform<T::Coord>),
}
Expand description
Undo operation for LayoutEdit
operations.
Variants
HierarchyOp(HierarchyUndoOp<T>)
Undo an operation on the cell hierarchy.
SetDbu(T::Coord)
Store previous dbu.
CreateLayer(T::LayerId)
Store ID of the created layer.
SetLayerName(T::LayerId, Option<T::NameType>)
Store previous layer name.
InsertShape(T::ShapeId)
Store id of created shape.
RemoveShape
Fields
parent_cell: T::CellId
Parent cell of the removed shape.
layer: T::LayerId
Layer of the removed shape.
Store the geometry of the previous shape.
ReplaceShape(T::ShapeId, Geometry<T::Coord>)
Store the old geometry of the shape.
SetTransform(T::CellInstId, SimpleTransform<T::Coord>)
Store the old transform.
Trait Implementations
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: 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.
Auto Trait Implementations
impl<T> RefUnwindSafe for LayoutUndoOp<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 LayoutBase>::ShapeId: RefUnwindSafe,
impl<T> Send for LayoutUndoOp<T> where
<T as HierarchyBase>::CellId: Send,
<T as HierarchyBase>::CellInstId: Send,
<T as LayoutBase>::LayerId: Send,
<T as HierarchyBase>::NameType: Send,
<T as LayoutBase>::ShapeId: Send,
impl<T> Sync for LayoutUndoOp<T> where
<T as HierarchyBase>::CellId: Sync,
<T as HierarchyBase>::CellInstId: Sync,
<T as LayoutBase>::LayerId: Sync,
<T as HierarchyBase>::NameType: Sync,
<T as LayoutBase>::ShapeId: Sync,
impl<T> Unpin for LayoutUndoOp<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 LayoutBase>::ShapeId: Unpin,
impl<T> UnwindSafe for LayoutUndoOp<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 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