#[repr(C)]pub struct Point<T: Default + Clone + Debug> {
pub x: T,
pub y: T,
}
Fields§
§x: T
§y: T
Implementations§
Trait Implementations§
source§impl<T: Default + Clone + Debug + AddAssign> AddAssign<Point<T>> for Point<T>
impl<T: Default + Clone + Debug + AddAssign> AddAssign<Point<T>> for Point<T>
source§fn add_assign(&mut self, rhs: Point<T>)
fn add_assign(&mut self, rhs: Point<T>)
Performs the
+=
operation. Read moresource§impl<T, S> Div<S> for Point<T>where
T: Div<S, Output = T> + Clone + Default + Debug,
S: Clone,
impl<T, S> Div<S> for Point<T>where T: Div<S, Output = T> + Clone + Default + Debug, S: Clone,
source§impl<T: Default + Clone + Debug> From<PointRefinement<T>> for Point<T>where
Option<T>: Clone,
impl<T: Default + Clone + Debug> From<PointRefinement<T>> for Point<T>where Option<T>: Clone,
source§fn from(value: PointRefinement<T>) -> Self
fn from(value: PointRefinement<T>) -> Self
Converts to this type from the input type.
source§impl<T, Rhs> Mul<Rhs> for Point<T>where
T: Mul<Rhs, Output = T> + Clone + Default + Debug,
Rhs: Clone + Debug,
impl<T, Rhs> Mul<Rhs> for Point<T>where T: Mul<Rhs, Output = T> + Clone + Default + Debug, Rhs: Clone + Debug,
source§impl<T, S> MulAssign<S> for Point<T>where
T: Clone + Mul<S, Output = T> + Default + Debug,
S: Clone,
impl<T, S> MulAssign<S> for Point<T>where T: Clone + Mul<S, Output = T> + Default + Debug, S: Clone,
source§fn mul_assign(&mut self, rhs: S)
fn mul_assign(&mut self, rhs: S)
Performs the
*=
operation. Read moresource§impl<T: PartialEq + Default + Clone + Debug> PartialEq<Point<T>> for Point<T>
impl<T: PartialEq + Default + Clone + Debug> PartialEq<Point<T>> for Point<T>
source§impl<T: Default + Clone + Debug> Refineable for Point<T>where
Option<T>: Clone,
impl<T: Default + Clone + Debug> Refineable for Point<T>where Option<T>: Clone,
type Refinement = PointRefinement<T>
fn refine(&mut self, refinement: &Self::Refinement)
fn refined(self, refinement: Self::Refinement) -> Self
fn from_cascade(cascade: &Cascade<Self>) -> Selfwhere Self: Default + Sized,
source§impl<T: Default + Clone + Debug + SubAssign> SubAssign<Point<T>> for Point<T>
impl<T: Default + Clone + Debug + SubAssign> SubAssign<Point<T>> for Point<T>
source§fn sub_assign(&mut self, rhs: Point<T>)
fn sub_assign(&mut self, rhs: Point<T>)
Performs the
-=
operation. Read moreimpl<T: Copy + Default + Clone + Debug> Copy for Point<T>
impl<T: Eq + Default + Clone + Debug> Eq for Point<T>
impl<T: Default + Clone + Debug> StructuralEq for Point<T>
impl<T: Default + Clone + Debug> StructuralPartialEq for Point<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Point<T>where T: RefUnwindSafe,
impl<T> Send for Point<T>where T: Send,
impl<T> Sync for Point<T>where T: Sync,
impl<T> Unpin for Point<T>where T: Unpin,
impl<T> UnwindSafe for Point<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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere T: Default + PartialEq<T> + Copy,
source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.