pub enum NodeExtent {
Parent,
Rect {
rect: CanvasRect,
},
}Expand description
Per-node movement/resize extent.
Variants§
Parent
Constrain to the node’s parent container (if any).
Rect
Constrain to the given rect in canvas space.
Fields
§
rect: CanvasRectTrait Implementations§
Source§impl Clone for NodeExtent
impl Clone for NodeExtent
Source§fn clone(&self) -> NodeExtent
fn clone(&self) -> NodeExtent
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 NodeExtent
Source§impl Debug for NodeExtent
impl Debug for NodeExtent
Source§impl<'de> Deserialize<'de> for NodeExtent
impl<'de> Deserialize<'de> for NodeExtent
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 NodeExtent
impl PartialEq for NodeExtent
Source§fn eq(&self, other: &NodeExtent) -> bool
fn eq(&self, other: &NodeExtent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeExtent
impl Serialize for NodeExtent
impl StructuralPartialEq for NodeExtent
Auto Trait Implementations§
impl Freeze for NodeExtent
impl RefUnwindSafe for NodeExtent
impl Send for NodeExtent
impl Sync for NodeExtent
impl Unpin for NodeExtent
impl UnsafeUnpin for NodeExtent
impl UnwindSafe for NodeExtent
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