pub struct NodeOrigin {
pub x: f32,
pub y: f32,
}Expand description
Per-node origin override, expressed as a normalized fraction of the node rect.
Fields§
§x: f32§y: f32Implementations§
Trait Implementations§
Source§impl Clone for NodeOrigin
impl Clone for NodeOrigin
Source§fn clone(&self) -> NodeOrigin
fn clone(&self) -> NodeOrigin
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 NodeOrigin
Source§impl Debug for NodeOrigin
impl Debug for NodeOrigin
Source§impl<'de> Deserialize<'de> for NodeOrigin
impl<'de> Deserialize<'de> for NodeOrigin
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 NodeOrigin
impl PartialEq for NodeOrigin
Source§fn eq(&self, other: &NodeOrigin) -> bool
fn eq(&self, other: &NodeOrigin) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeOrigin
impl Serialize for NodeOrigin
impl StructuralPartialEq for NodeOrigin
Auto Trait Implementations§
impl Freeze for NodeOrigin
impl RefUnwindSafe for NodeOrigin
impl Send for NodeOrigin
impl Sync for NodeOrigin
impl Unpin for NodeOrigin
impl UnsafeUnpin for NodeOrigin
impl UnwindSafe for NodeOrigin
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