Struct lattice_qcd_rs::number::FixedPointNumber
source · pub struct FixedPointNumber<I, D>where
I: Signed + Ord + Copy,
D: Unsigned + Ord + Copy,{ /* private fields */ }
Expand description
Fix point number.
Implementations§
Trait Implementations§
source§impl<I, D> Clone for FixedPointNumber<I, D>where
I: Signed + Ord + Copy + Clone,
D: Unsigned + Ord + Copy + Clone,
impl<I, D> Clone for FixedPointNumber<I, D>where I: Signed + Ord + Copy + Clone, D: Unsigned + Ord + Copy + Clone,
source§fn clone(&self) -> FixedPointNumber<I, D>
fn clone(&self) -> FixedPointNumber<I, D>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<I, D> Debug for FixedPointNumber<I, D>where
I: Signed + Ord + Copy + Debug,
D: Unsigned + Ord + Copy + Debug,
impl<I, D> Debug for FixedPointNumber<I, D>where I: Signed + Ord + Copy + Debug, D: Unsigned + Ord + Copy + Debug,
source§impl<I, D> Hash for FixedPointNumber<I, D>where
I: Signed + Ord + Copy + Hash,
D: Unsigned + Ord + Copy + Hash,
impl<I, D> Hash for FixedPointNumber<I, D>where I: Signed + Ord + Copy + Hash, D: Unsigned + Ord + Copy + Hash,
source§impl<I, D> Ord for FixedPointNumber<I, D>where
I: Signed + Ord + Copy + Ord,
D: Unsigned + Ord + Copy + Ord,
impl<I, D> Ord for FixedPointNumber<I, D>where I: Signed + Ord + Copy + Ord, D: Unsigned + Ord + Copy + Ord,
source§fn cmp(&self, other: &FixedPointNumber<I, D>) -> Ordering
fn cmp(&self, other: &FixedPointNumber<I, D>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<I, D> PartialEq<FixedPointNumber<I, D>> for FixedPointNumber<I, D>where
I: Signed + Ord + Copy + PartialEq,
D: Unsigned + Ord + Copy + PartialEq,
impl<I, D> PartialEq<FixedPointNumber<I, D>> for FixedPointNumber<I, D>where I: Signed + Ord + Copy + PartialEq, D: Unsigned + Ord + Copy + PartialEq,
source§fn eq(&self, other: &FixedPointNumber<I, D>) -> bool
fn eq(&self, other: &FixedPointNumber<I, D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<I, D> PartialOrd<FixedPointNumber<I, D>> for FixedPointNumber<I, D>where
I: Signed + Ord + Copy + PartialOrd,
D: Unsigned + Ord + Copy + PartialOrd,
impl<I, D> PartialOrd<FixedPointNumber<I, D>> for FixedPointNumber<I, D>where I: Signed + Ord + Copy + PartialOrd, D: Unsigned + Ord + Copy + PartialOrd,
source§fn partial_cmp(&self, other: &FixedPointNumber<I, D>) -> Option<Ordering>
fn partial_cmp(&self, other: &FixedPointNumber<I, D>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<I, D> Copy for FixedPointNumber<I, D>where I: Signed + Ord + Copy + Copy, D: Unsigned + Ord + Copy + Copy,
impl<I, D> Eq for FixedPointNumber<I, D>where I: Signed + Ord + Copy + Eq, D: Unsigned + Ord + Copy + Eq,
impl<I, D> StructuralEq for FixedPointNumber<I, D>where I: Signed + Ord + Copy, D: Unsigned + Ord + Copy,
impl<I, D> StructuralPartialEq for FixedPointNumber<I, D>where I: Signed + Ord + Copy, D: Unsigned + Ord + Copy,
Auto Trait Implementations§
impl<I, D> RefUnwindSafe for FixedPointNumber<I, D>where D: RefUnwindSafe, I: RefUnwindSafe,
impl<I, D> Send for FixedPointNumber<I, D>where D: Send, I: Send,
impl<I, D> Sync for FixedPointNumber<I, D>where D: Sync, I: Sync,
impl<I, D> Unpin for FixedPointNumber<I, D>where D: Unpin, I: Unpin,
impl<I, D> UnwindSafe for FixedPointNumber<I, D>where D: UnwindSafe, I: UnwindSafe,
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.