pub struct FixedPoint64<const SCALE: u64>(pub i64);Expand description
Wrapper type for ClickHouse FixedPoint64 type.
Tuple Fields§
§0: i64Implementations§
Trait Implementations§
Source§impl<const SCALE: u64> Clone for FixedPoint64<SCALE>
impl<const SCALE: u64> Clone for FixedPoint64<SCALE>
Source§fn clone(&self) -> FixedPoint64<SCALE>
fn clone(&self) -> FixedPoint64<SCALE>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const SCALE: u64> Debug for FixedPoint64<SCALE>
impl<const SCALE: u64> Debug for FixedPoint64<SCALE>
Source§impl<const SCALE: u64> Default for FixedPoint64<SCALE>
impl<const SCALE: u64> Default for FixedPoint64<SCALE>
Source§fn default() -> FixedPoint64<SCALE>
fn default() -> FixedPoint64<SCALE>
Returns the “default value” for a type. Read more
Source§impl<'de, const SCALE: u64> Deserialize<'de> for FixedPoint64<SCALE>
impl<'de, const SCALE: u64> Deserialize<'de> for FixedPoint64<SCALE>
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
Source§impl<const SCALE: u64> From<FixedPoint64<SCALE>> for f64
impl<const SCALE: u64> From<FixedPoint64<SCALE>> for f64
Source§fn from(fp: FixedPoint64<SCALE>) -> Self
fn from(fp: FixedPoint64<SCALE>) -> Self
Converts to this type from the input type.
Source§impl<const SCALE: u64> FromSql for FixedPoint64<SCALE>
impl<const SCALE: u64> FromSql for FixedPoint64<SCALE>
Source§impl<const SCALE: u64> Hash for FixedPoint64<SCALE>
impl<const SCALE: u64> Hash for FixedPoint64<SCALE>
Source§impl<const SCALE: u64> Ord for FixedPoint64<SCALE>
impl<const SCALE: u64> Ord for FixedPoint64<SCALE>
Source§fn cmp(&self, other: &FixedPoint64<SCALE>) -> Ordering
fn cmp(&self, other: &FixedPoint64<SCALE>) -> 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 SCALE: u64> PartialEq for FixedPoint64<SCALE>
impl<const SCALE: u64> PartialEq for FixedPoint64<SCALE>
Source§impl<const SCALE: u64> PartialOrd for FixedPoint64<SCALE>
impl<const SCALE: u64> PartialOrd for FixedPoint64<SCALE>
Source§impl<const SCALE: u64> Serialize for FixedPoint64<SCALE>
impl<const SCALE: u64> Serialize for FixedPoint64<SCALE>
Source§impl<const SCALE: u64> ToSql for FixedPoint64<SCALE>
impl<const SCALE: u64> ToSql for FixedPoint64<SCALE>
impl<const SCALE: u64> Copy for FixedPoint64<SCALE>
impl<const SCALE: u64> Eq for FixedPoint64<SCALE>
impl<const SCALE: u64> StructuralPartialEq for FixedPoint64<SCALE>
Auto Trait Implementations§
impl<const SCALE: u64> Freeze for FixedPoint64<SCALE>
impl<const SCALE: u64> RefUnwindSafe for FixedPoint64<SCALE>
impl<const SCALE: u64> Send for FixedPoint64<SCALE>
impl<const SCALE: u64> Sync for FixedPoint64<SCALE>
impl<const SCALE: u64> Unpin for FixedPoint64<SCALE>
impl<const SCALE: u64> UnwindSafe for FixedPoint64<SCALE>
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§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.