pub struct Delta<T: Default + PartialEq + Eq> {
pub x: T,
pub y: T,
}
Expand description
A delta for a point in a 2 dimensional plane
Fields§
§x: T
Horizontal change
y: T
Vertical change
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Delta<T>
impl<'de, T> Deserialize<'de> for Delta<T>
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
impl<T: Copy + Default + PartialEq + Eq> Copy for Delta<T>
impl<T: Eq + Default + PartialEq + Eq> Eq for Delta<T>
impl<T: Default + PartialEq + Eq> StructuralPartialEq for Delta<T>
Auto Trait Implementations§
impl<T> Freeze for Delta<T>where
T: Freeze,
impl<T> RefUnwindSafe for Delta<T>where
T: RefUnwindSafe,
impl<T> Send for Delta<T>where
T: Send,
impl<T> Sync for Delta<T>where
T: Sync,
impl<T> Unpin for Delta<T>where
T: Unpin,
impl<T> UnwindSafe for Delta<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)