pub struct NodeResizeSessionUpdateRequest {
pub current: CanvasPoint,
pub constraints: NodeResizeConstraints,
pub keep_aspect_ratio: bool,
pub axis: NodeResizeAxis,
}Expand description
Per-update inputs for a node resize session.
Fields§
§current: CanvasPoint§constraints: NodeResizeConstraints§keep_aspect_ratio: bool§axis: NodeResizeAxisImplementations§
Source§impl NodeResizeSessionUpdateRequest
impl NodeResizeSessionUpdateRequest
pub fn new(current: CanvasPoint) -> Self
pub fn with_constraints(self, constraints: NodeResizeConstraints) -> Self
pub fn with_keep_aspect_ratio(self, keep_aspect_ratio: bool) -> Self
pub fn with_axis(self, axis: NodeResizeAxis) -> Self
Trait Implementations§
Source§impl Clone for NodeResizeSessionUpdateRequest
impl Clone for NodeResizeSessionUpdateRequest
Source§fn clone(&self) -> NodeResizeSessionUpdateRequest
fn clone(&self) -> NodeResizeSessionUpdateRequest
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 moreimpl Copy for NodeResizeSessionUpdateRequest
Source§impl PartialEq for NodeResizeSessionUpdateRequest
impl PartialEq for NodeResizeSessionUpdateRequest
Source§fn eq(&self, other: &NodeResizeSessionUpdateRequest) -> bool
fn eq(&self, other: &NodeResizeSessionUpdateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeResizeSessionUpdateRequest
Auto Trait Implementations§
impl Freeze for NodeResizeSessionUpdateRequest
impl RefUnwindSafe for NodeResizeSessionUpdateRequest
impl Send for NodeResizeSessionUpdateRequest
impl Sync for NodeResizeSessionUpdateRequest
impl Unpin for NodeResizeSessionUpdateRequest
impl UnsafeUnpin for NodeResizeSessionUpdateRequest
impl UnwindSafe for NodeResizeSessionUpdateRequest
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