Struct klickhouse::FixedPoint128
source · pub struct FixedPoint128<const PRECISION: u64>(pub i128);
Expand description
Wrapper type for Clickhouse FixedPoint128
type.
Tuple Fields§
§0: i128
Implementations§
Trait Implementations§
source§impl<const PRECISION: u64> Clone for FixedPoint128<PRECISION>
impl<const PRECISION: u64> Clone for FixedPoint128<PRECISION>
source§fn clone(&self) -> FixedPoint128<PRECISION>
fn clone(&self) -> FixedPoint128<PRECISION>
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<const PRECISION: u64> Debug for FixedPoint128<PRECISION>
impl<const PRECISION: u64> Debug for FixedPoint128<PRECISION>
source§impl<const PRECISION: u64> Default for FixedPoint128<PRECISION>
impl<const PRECISION: u64> Default for FixedPoint128<PRECISION>
source§fn default() -> FixedPoint128<PRECISION>
fn default() -> FixedPoint128<PRECISION>
Returns the “default value” for a type. Read more
source§impl<const PRECISION: u64> From<FixedPoint128<PRECISION>> for f64
impl<const PRECISION: u64> From<FixedPoint128<PRECISION>> for f64
source§fn from(fp: FixedPoint128<PRECISION>) -> Self
fn from(fp: FixedPoint128<PRECISION>) -> Self
Converts to this type from the input type.
source§impl<const PRECISION: u64> FromSql for FixedPoint128<PRECISION>
impl<const PRECISION: u64> FromSql for FixedPoint128<PRECISION>
source§impl<const PRECISION: u64> Hash for FixedPoint128<PRECISION>
impl<const PRECISION: u64> Hash for FixedPoint128<PRECISION>
source§impl<const PRECISION: u64> Ord for FixedPoint128<PRECISION>
impl<const PRECISION: u64> Ord for FixedPoint128<PRECISION>
source§fn cmp(&self, other: &FixedPoint128<PRECISION>) -> Ordering
fn cmp(&self, other: &FixedPoint128<PRECISION>) -> 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<const PRECISION: u64> PartialEq for FixedPoint128<PRECISION>
impl<const PRECISION: u64> PartialEq for FixedPoint128<PRECISION>
source§fn eq(&self, other: &FixedPoint128<PRECISION>) -> bool
fn eq(&self, other: &FixedPoint128<PRECISION>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<const PRECISION: u64> PartialOrd for FixedPoint128<PRECISION>
impl<const PRECISION: u64> PartialOrd for FixedPoint128<PRECISION>
source§fn partial_cmp(&self, other: &FixedPoint128<PRECISION>) -> Option<Ordering>
fn partial_cmp(&self, other: &FixedPoint128<PRECISION>) -> 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 moresource§impl<const PRECISION: u64> ToSql for FixedPoint128<PRECISION>
impl<const PRECISION: u64> ToSql for FixedPoint128<PRECISION>
impl<const PRECISION: u64> Copy for FixedPoint128<PRECISION>
impl<const PRECISION: u64> Eq for FixedPoint128<PRECISION>
impl<const PRECISION: u64> StructuralPartialEq for FixedPoint128<PRECISION>
Auto Trait Implementations§
impl<const PRECISION: u64> Freeze for FixedPoint128<PRECISION>
impl<const PRECISION: u64> RefUnwindSafe for FixedPoint128<PRECISION>
impl<const PRECISION: u64> Send for FixedPoint128<PRECISION>
impl<const PRECISION: u64> Sync for FixedPoint128<PRECISION>
impl<const PRECISION: u64> Unpin for FixedPoint128<PRECISION>
impl<const PRECISION: u64> UnwindSafe for FixedPoint128<PRECISION>
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.