Struct hexagon_tiles::point::Point

source ·
pub struct Point {
    pub x: f64,
    pub y: f64,
}

Fields§

§x: f64§y: f64

Trait Implementations§

source§

impl AssertFloatEq for Point

§

type DebugAbsDiff = Point

The absolute difference between two values, displayed to the user via fmt::Debug when an assert fails. Read more
§

type DebugTol = Point

The per-field tolerance value used for comparison between two values, displayed to the user via fmt::Debug when an assert fails. Read more
source§

fn debug_abs_diff(&self, other: &Self) -> Self

Always positive absolute difference between two values. Read more
source§

fn debug_ulps_diff(&self, other: &Self) -> PointUlpsDebugUlpsDiff

Always positive absolute difference between two values in terms of ULPs. Read more
source§

fn debug_abs_tol(&self, other: &Self, tol: &Self) -> Self

The tolerance used by an abs comparison, displayed when an assert fails.
source§

fn debug_rmax_tol(&self, other: &Self, tol: &Self) -> Self

The tolerance used by an rmax comparison, displayed when an assert fails. Read more
source§

fn debug_rmin_tol(&self, other: &Self, tol: &Self) -> Self

The tolerance used by an rmin comparison, displayed when an assert fails. Read more
source§

fn debug_r1st_tol(&self, other: &Self, tol: &Self) -> Self

The tolerance used by an r1st comparison, displayed when an assert fails. Read more
source§

fn debug_r2nd_tol(&self, other: &Self, tol: &Self) -> Self

The tolerance used by an r2nd comparison, displayed when an assert fails. Read more
source§

fn debug_ulps_tol(&self, other: &Self, tol: &PointUlps) -> PointUlps

The tolerance used by an ulps comparison, displayed when an assert fails.
source§

fn debug_rel_tol(&self, other: &Rhs, tol: &Self::Tol) -> Self::DebugTol

The tolerance used by a rel comparison, displayed when an assert fails. Read more
source§

impl AssertFloatEqAll for Point

§

type AllDebugTol = Point

Displayed to the user when an assert fails, using fmt::Debug. Read more
source§

fn debug_abs_all_tol(&self, other: &Self, tol: &f64) -> Self

The tolerance used by an abs_all comparison, displayed when an assert fails.
source§

fn debug_rmax_all_tol(&self, other: &Self, tol: &f64) -> Self

The tolerance used by an rmax_all comparison, displayed when an assert fails. Read more
source§

fn debug_rmin_all_tol(&self, other: &Self, tol: &f64) -> Self

The tolerance used by an rmin_all comparison, displayed when an assert fails. Read more
source§

fn debug_r1st_all_tol(&self, other: &Self, tol: &f64) -> Self

The tolerance used by an r1st_all comparison, displayed when an assert fails. Read more
source§

fn debug_r2nd_all_tol(&self, other: &Self, tol: &f64) -> Self

The tolerance used by an r2nd_all comparison, displayed when an assert fails. Read more
source§

fn debug_ulps_all_tol( &self, other: &Self, tol: &UlpsTol<Self::AllTol> ) -> UlpsTol<Self::AllDebugTol>

The tolerance used by an ulps_all comparison, displayed when an assert fails.
source§

fn debug_rel_all_tol( &self, other: &Rhs, tol: &Self::AllTol ) -> Self::AllDebugTol

The tolerance used by a rel_all comparison, displayed when an assert fails. Read more
source§

impl Clone for Point

source§

fn clone(&self) -> Point

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Point

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FloatEq for Point

§

type Tol = Point

Type of the maximum allowed difference between two values for them to be considered equal.
source§

fn eq_abs(&self, other: &Self, tol: &Self) -> bool

Check whether self is equal to other, using an absolute tolerance comparison. Read more
source§

fn eq_rmax(&self, other: &Self, tol: &Self) -> bool

Check whether self is equal to other, using a relative tolerance comparison, scaled to the granularity of the input with the largest magnitude. Read more
source§

fn eq_rmin(&self, other: &Self, tol: &Self) -> bool

Check whether self is equal to other, using a relative tolerance comparison, scaled to the granularity of the input with the smallest magnitude. Read more
source§

fn eq_r1st(&self, other: &Self, tol: &Self) -> bool

Check whether self is equal to other, using a relative tolerance comparison, scaled to the granularity of the first input. Read more
source§

fn eq_r2nd(&self, other: &Self, tol: &Self) -> bool

Check whether self is equal to other, using a relative tolerance comparison, scaled to the granularity of the second input. Read more
source§

fn eq_ulps(&self, other: &Self, tol: &PointUlps) -> bool

Check whether self is equal to other, using an ULPs comparison. Read more
source§

fn ne_abs(&self, other: &Rhs, tol: &Self::Tol) -> bool

Check whether self is not equal to other, using an absolute tolerance comparison. Read more
source§

fn eq_rel(&self, other: &Rhs, tol: &Self::Tol) -> bool

Check whether self is equal to other, using a relative tolerance comparison. Read more
source§

fn ne_rel(&self, other: &Rhs, tol: &Self::Tol) -> bool

Check whether self is not equal to other, using a relative tolerance comparison. Read more
source§

fn ne_rmax(&self, other: &Rhs, tol: &Self::Tol) -> bool

Check whether self is not equal to other, using a relative tolerance comparison. Read more
source§

fn ne_rmin(&self, other: &Rhs, tol: &Self::Tol) -> bool

Check whether self is not equal to other, using a relative tolerance comparison. Read more
source§

fn ne_r1st(&self, other: &Rhs, tol: &Self::Tol) -> bool

Check whether self is not equal to other, using a relative tolerance comparison. Read more
source§

fn ne_r2nd(&self, other: &Rhs, tol: &Self::Tol) -> bool

Check whether self is not equal to other, using a relative tolerance comparison. Read more
source§

fn ne_ulps( &self, other: &Rhs, tol: &<Self::Tol as FloatEqUlpsTol>::UlpsTol ) -> bool

Check whether self is not equal to other, using an ULPs comparison. Read more
source§

impl FloatEqAll for Point

§

type AllTol = f64

Type of the maximum allowed difference between each of two values’ fields for them to be considered equal.
source§

fn eq_abs_all(&self, other: &Self, tol: &f64) -> bool

Check whether self is equal to other, using an absolute tolerance comparison. Read more
source§

fn eq_rmax_all(&self, other: &Self, tol: &f64) -> bool

Check whether self is equal to other, using a relative tolerance comparison. Read more
source§

fn eq_rmin_all(&self, other: &Self, tol: &f64) -> bool

Check whether self is equal to other, using a relative tolerance comparison. Read more
source§

fn eq_r1st_all(&self, other: &Self, tol: &f64) -> bool

Check whether self is equal to other, using a relative tolerance comparison. Read more
source§

fn eq_r2nd_all(&self, other: &Self, tol: &f64) -> bool

Check whether self is equal to other, using a relative tolerance comparison. Read more
source§

fn eq_ulps_all(&self, other: &Self, tol: &UlpsTol<Self::AllTol>) -> bool

Check whether self is equal to other, using an ULPs comparison. Read more
source§

fn ne_abs_all(&self, other: &Rhs, tol: &Self::AllTol) -> bool

Check whether self is not equal to other, using an absolute tolerance comparison. Read more
source§

fn eq_rel_all(&self, other: &Rhs, tol: &Self::AllTol) -> bool

Check whether self is equal to other, using a relative tolerance comparison. Read more
source§

fn ne_rel_all(&self, other: &Rhs, tol: &Self::AllTol) -> bool

Check whether self is not equal to other, using a relative tolerance comparison. Read more
source§

fn ne_rmax_all(&self, other: &Rhs, tol: &Self::AllTol) -> bool

Check whether self is not equal to other, using a relative tolerance comparison. Read more
source§

fn ne_rmin_all(&self, other: &Rhs, tol: &Self::AllTol) -> bool

Check whether self is not equal to other, using a relative tolerance comparison. Read more
source§

fn ne_r1st_all(&self, other: &Rhs, tol: &Self::AllTol) -> bool

Check whether self is not equal to other, using a relative tolerance comparison. Read more
source§

fn ne_r2nd_all(&self, other: &Rhs, tol: &Self::AllTol) -> bool

Check whether self is not equal to other, using a relative tolerance comparison. Read more
source§

fn ne_ulps_all( &self, other: &Rhs, tol: &<Self::AllTol as FloatEqUlpsTol>::UlpsTol ) -> bool

Check whether self is not equal to other, using an ULPs comparison. Read more
source§

impl FloatEqDebugUlpsDiff for Point

§

type DebugUlpsDiff = PointUlpsDebugUlpsDiff

A structurally identical type to Self, with fields recursively wrapped by DebugUlpsDiff.
source§

impl FloatEqUlpsTol for Point

§

type UlpsTol = PointUlps

A structurally identical type to Self, with fields recursively wrapped by UlpsTol.
source§

impl PartialEq for Point

source§

fn eq(&self, other: &Point) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Point

source§

impl StructuralPartialEq for Point

Auto Trait Implementations§

§

impl RefUnwindSafe for Point

§

impl Send for Point

§

impl Sync for Point

§

impl Unpin for Point

§

impl UnwindSafe for Point

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.