pub struct NodeResizePlan {
pub node: NodeId,
pub from: Option<CanvasSize>,
pub to: CanvasSize,
pub from_pos: CanvasPoint,
pub to_pos: CanvasPoint,
/* private fields */
}Expand description
Planned node resize transaction.
Fields§
§node: NodeIdNode being resized.
from: Option<CanvasSize>Current explicit node size.
to: CanvasSizePlanned explicit node size.
from_pos: CanvasPointCurrent node position.
to_pos: CanvasPointPlanned node position.
Implementations§
Source§impl NodeResizePlan
impl NodeResizePlan
Sourcepub fn items(&self) -> &[NodeResizeItem]
pub fn items(&self) -> &[NodeResizeItem]
Returns ordered resize items.
Sourcepub fn transaction(&self) -> &GraphTransaction
pub fn transaction(&self) -> &GraphTransaction
Returns the transaction that applies this resize update.
Sourcepub fn into_transaction(self) -> GraphTransaction
pub fn into_transaction(self) -> GraphTransaction
Consumes the plan and returns its transaction.
Trait Implementations§
Source§impl Clone for NodeResizePlan
impl Clone for NodeResizePlan
Source§fn clone(&self) -> NodeResizePlan
fn clone(&self) -> NodeResizePlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NodeResizePlan
impl RefUnwindSafe for NodeResizePlan
impl Send for NodeResizePlan
impl Sync for NodeResizePlan
impl Unpin for NodeResizePlan
impl UnsafeUnpin for NodeResizePlan
impl UnwindSafe for NodeResizePlan
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