pub struct NodeResizeConstraints {
pub min: Option<CanvasSize>,
pub max: Option<CanvasSize>,
}Expand description
Optional canvas-space size bounds for a node resize request.
Fields§
§min: Option<CanvasSize>§max: Option<CanvasSize>Implementations§
Source§impl NodeResizeConstraints
impl NodeResizeConstraints
pub fn new(min: Option<CanvasSize>, max: Option<CanvasSize>) -> Self
pub fn unconstrained() -> Self
Trait Implementations§
Source§impl Clone for NodeResizeConstraints
impl Clone for NodeResizeConstraints
Source§fn clone(&self) -> NodeResizeConstraints
fn clone(&self) -> NodeResizeConstraints
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 NodeResizeConstraints
Source§impl Debug for NodeResizeConstraints
impl Debug for NodeResizeConstraints
Source§impl Default for NodeResizeConstraints
impl Default for NodeResizeConstraints
Source§fn default() -> NodeResizeConstraints
fn default() -> NodeResizeConstraints
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeResizeConstraints
impl<'de> Deserialize<'de> for NodeResizeConstraints
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NodeResizeConstraints
impl PartialEq for NodeResizeConstraints
Source§fn eq(&self, other: &NodeResizeConstraints) -> bool
fn eq(&self, other: &NodeResizeConstraints) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeResizeConstraints
impl Serialize for NodeResizeConstraints
impl StructuralPartialEq for NodeResizeConstraints
Auto Trait Implementations§
impl Freeze for NodeResizeConstraints
impl RefUnwindSafe for NodeResizeConstraints
impl Send for NodeResizeConstraints
impl Sync for NodeResizeConstraints
impl Unpin for NodeResizeConstraints
impl UnsafeUnpin for NodeResizeConstraints
impl UnwindSafe for NodeResizeConstraints
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