pub struct AnyNumeric { /* private fields */ }Expand description
A plain Postgres SQL NUMERIC with default precision and scale values. This is a sufficient type
to represent any Rust primitive value from i128::MIN to u128::MAX and anything in between.
Generally, this is the type you’ll want to use as function arguments.
Implementations§
Source§impl AnyNumeric
impl AnyNumeric
Sourcepub fn sign(&self) -> Sign
pub fn sign(&self) -> Sign
Returns the sign of this AnyNumeric
Sourcepub fn is_nan(&self) -> bool
pub fn is_nan(&self) -> bool
Is this AnyNumeric not-a-number?
Sourcepub fn abs(&self) -> AnyNumeric
pub fn abs(&self) -> AnyNumeric
The absolute value of this AnyNumeric
Sourcepub fn log(&self, base: AnyNumeric) -> AnyNumeric
pub fn log(&self, base: AnyNumeric) -> AnyNumeric
Compute the logarithm of this AnyNumeric in the given base
Sourcepub fn exp(x: &AnyNumeric) -> AnyNumeric
pub fn exp(x: &AnyNumeric) -> AnyNumeric
Raise e to the power of x
Sourcepub fn sqrt(&self) -> AnyNumeric
pub fn sqrt(&self) -> AnyNumeric
Compute the square root of this AnyNumeric
Sourcepub fn ceil(&self) -> AnyNumeric
pub fn ceil(&self) -> AnyNumeric
Return the smallest integer greater than or equal to this AnyNumeric
Sourcepub fn floor(&self) -> AnyNumeric
pub fn floor(&self) -> AnyNumeric
Return the largest integer equal to or less than this AnyNumeric
Sourcepub fn gcd(&self, n: &AnyNumeric) -> AnyNumeric
pub fn gcd(&self, n: &AnyNumeric) -> AnyNumeric
Calculate the greatest common divisor of this an another AnyNumeric
Sourcepub fn normalize(&self) -> &str
pub fn normalize(&self) -> &str
Output function for numeric data type, suppressing insignificant trailing zeroes and then any trailing decimal point. The intent of this is to produce strings that are equal if and only if the input numeric values compare equal.
Sourcepub fn rescale<const P: u32, const S: u32>(self) -> Result<Numeric<P, S>, Error>
pub fn rescale<const P: u32, const S: u32>(self) -> Result<Numeric<P, S>, Error>
Consume this AnyNumeric and apply a Precision and Scale.
Returns an Error if this AnyNumeric doesn’t fit within the new constraints.
§Examples
use pgrx::{AnyNumeric, Numeric};
let start = AnyNumeric::try_from(42.42).unwrap();
let rescaled:f32 = start.rescale::<3, 1>().unwrap().try_into().unwrap();
assert_eq!(rescaled, 42.4);Trait Implementations§
Source§impl<const Q: u32, const T: u32> Add<Numeric<Q, T>> for AnyNumeric
Numeric on the left, AnyNumeric on the right. Results in a new AnyNumeric
impl<const Q: u32, const T: u32> Add<Numeric<Q, T>> for AnyNumeric
Numeric on the left, AnyNumeric on the right. Results in a new AnyNumeric
Source§impl Add<f32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Add<f32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Add<f64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Add<f64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Add<i128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Add<i128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Add<i16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Add<i16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Add<i32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Add<i32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Add<i64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Add<i64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Add<i8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Add<i8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Add<isize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Add<isize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Add<u128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Add<u128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Add<u16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Add<u16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Add<u32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Add<u32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Add<u64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Add<u64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Add<u8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Add<u8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Add<usize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Add<usize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Add for AnyNumeric
impl Add for AnyNumeric
Source§type Output = AnyNumeric
type Output = AnyNumeric
+ operator.Source§fn add(self, rhs: AnyNumeric) -> <AnyNumeric as Add>::Output
fn add(self, rhs: AnyNumeric) -> <AnyNumeric as Add>::Output
+ operation. Read moreSource§impl AddAssign<f32> for AnyNumeric
impl AddAssign<f32> for AnyNumeric
Source§fn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
+= operation. Read moreSource§impl AddAssign<f64> for AnyNumeric
impl AddAssign<f64> for AnyNumeric
Source§fn add_assign(&mut self, rhs: f64)
fn add_assign(&mut self, rhs: f64)
+= operation. Read moreSource§impl AddAssign<i128> for AnyNumeric
impl AddAssign<i128> for AnyNumeric
Source§fn add_assign(&mut self, rhs: i128)
fn add_assign(&mut self, rhs: i128)
+= operation. Read moreSource§impl AddAssign<i16> for AnyNumeric
impl AddAssign<i16> for AnyNumeric
Source§fn add_assign(&mut self, rhs: i16)
fn add_assign(&mut self, rhs: i16)
+= operation. Read moreSource§impl AddAssign<i32> for AnyNumeric
impl AddAssign<i32> for AnyNumeric
Source§fn add_assign(&mut self, rhs: i32)
fn add_assign(&mut self, rhs: i32)
+= operation. Read moreSource§impl AddAssign<i64> for AnyNumeric
impl AddAssign<i64> for AnyNumeric
Source§fn add_assign(&mut self, rhs: i64)
fn add_assign(&mut self, rhs: i64)
+= operation. Read moreSource§impl AddAssign<i8> for AnyNumeric
impl AddAssign<i8> for AnyNumeric
Source§fn add_assign(&mut self, rhs: i8)
fn add_assign(&mut self, rhs: i8)
+= operation. Read moreSource§impl AddAssign<isize> for AnyNumeric
impl AddAssign<isize> for AnyNumeric
Source§fn add_assign(&mut self, rhs: isize)
fn add_assign(&mut self, rhs: isize)
+= operation. Read moreSource§impl AddAssign<u128> for AnyNumeric
impl AddAssign<u128> for AnyNumeric
Source§fn add_assign(&mut self, rhs: u128)
fn add_assign(&mut self, rhs: u128)
+= operation. Read moreSource§impl AddAssign<u16> for AnyNumeric
impl AddAssign<u16> for AnyNumeric
Source§fn add_assign(&mut self, rhs: u16)
fn add_assign(&mut self, rhs: u16)
+= operation. Read moreSource§impl AddAssign<u32> for AnyNumeric
impl AddAssign<u32> for AnyNumeric
Source§fn add_assign(&mut self, rhs: u32)
fn add_assign(&mut self, rhs: u32)
+= operation. Read moreSource§impl AddAssign<u64> for AnyNumeric
impl AddAssign<u64> for AnyNumeric
Source§fn add_assign(&mut self, rhs: u64)
fn add_assign(&mut self, rhs: u64)
+= operation. Read moreSource§impl AddAssign<u8> for AnyNumeric
impl AddAssign<u8> for AnyNumeric
Source§fn add_assign(&mut self, rhs: u8)
fn add_assign(&mut self, rhs: u8)
+= operation. Read moreSource§impl AddAssign<usize> for AnyNumeric
impl AddAssign<usize> for AnyNumeric
Source§fn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
+= operation. Read moreSource§impl AddAssign for AnyNumeric
impl AddAssign for AnyNumeric
Source§fn add_assign(&mut self, rhs: AnyNumeric)
fn add_assign(&mut self, rhs: AnyNumeric)
+= operation. Read moreSource§impl Clone for AnyNumeric
impl Clone for AnyNumeric
Source§fn clone(&self) -> AnyNumeric
fn clone(&self) -> AnyNumeric
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnyNumeric
impl Debug for AnyNumeric
Source§impl Default for AnyNumeric
impl Default for AnyNumeric
Source§fn default() -> AnyNumeric
fn default() -> AnyNumeric
Source§impl<'de> Deserialize<'de> for AnyNumeric
impl<'de> Deserialize<'de> for AnyNumeric
Source§fn deserialize<D>(
deserializer: D,
) -> Result<AnyNumeric, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<AnyNumeric, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl Display for AnyNumeric
impl Display for AnyNumeric
Source§impl<const Q: u32, const T: u32> Div<Numeric<Q, T>> for AnyNumeric
Numeric on the left, AnyNumeric on the right. Results in a new AnyNumeric
impl<const Q: u32, const T: u32> Div<Numeric<Q, T>> for AnyNumeric
Numeric on the left, AnyNumeric on the right. Results in a new AnyNumeric
Source§impl Div<f32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Div<f32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Div<f64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Div<f64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Div<i128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Div<i128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Div<i16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Div<i16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Div<i32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Div<i32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Div<i64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Div<i64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Div<i8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Div<i8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Div<isize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Div<isize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Div<u128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Div<u128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Div<u16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Div<u16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Div<u32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Div<u32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Div<u64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Div<u64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Div<u8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Div<u8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Div<usize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Div<usize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Div for AnyNumeric
impl Div for AnyNumeric
Source§type Output = AnyNumeric
type Output = AnyNumeric
/ operator.Source§fn div(self, rhs: AnyNumeric) -> <AnyNumeric as Div>::Output
fn div(self, rhs: AnyNumeric) -> <AnyNumeric as Div>::Output
/ operation. Read moreSource§impl DivAssign<f32> for AnyNumeric
impl DivAssign<f32> for AnyNumeric
Source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
/= operation. Read moreSource§impl DivAssign<f64> for AnyNumeric
impl DivAssign<f64> for AnyNumeric
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
/= operation. Read moreSource§impl DivAssign<i128> for AnyNumeric
impl DivAssign<i128> for AnyNumeric
Source§fn div_assign(&mut self, rhs: i128)
fn div_assign(&mut self, rhs: i128)
/= operation. Read moreSource§impl DivAssign<i16> for AnyNumeric
impl DivAssign<i16> for AnyNumeric
Source§fn div_assign(&mut self, rhs: i16)
fn div_assign(&mut self, rhs: i16)
/= operation. Read moreSource§impl DivAssign<i32> for AnyNumeric
impl DivAssign<i32> for AnyNumeric
Source§fn div_assign(&mut self, rhs: i32)
fn div_assign(&mut self, rhs: i32)
/= operation. Read moreSource§impl DivAssign<i64> for AnyNumeric
impl DivAssign<i64> for AnyNumeric
Source§fn div_assign(&mut self, rhs: i64)
fn div_assign(&mut self, rhs: i64)
/= operation. Read moreSource§impl DivAssign<i8> for AnyNumeric
impl DivAssign<i8> for AnyNumeric
Source§fn div_assign(&mut self, rhs: i8)
fn div_assign(&mut self, rhs: i8)
/= operation. Read moreSource§impl DivAssign<isize> for AnyNumeric
impl DivAssign<isize> for AnyNumeric
Source§fn div_assign(&mut self, rhs: isize)
fn div_assign(&mut self, rhs: isize)
/= operation. Read moreSource§impl DivAssign<u128> for AnyNumeric
impl DivAssign<u128> for AnyNumeric
Source§fn div_assign(&mut self, rhs: u128)
fn div_assign(&mut self, rhs: u128)
/= operation. Read moreSource§impl DivAssign<u16> for AnyNumeric
impl DivAssign<u16> for AnyNumeric
Source§fn div_assign(&mut self, rhs: u16)
fn div_assign(&mut self, rhs: u16)
/= operation. Read moreSource§impl DivAssign<u32> for AnyNumeric
impl DivAssign<u32> for AnyNumeric
Source§fn div_assign(&mut self, rhs: u32)
fn div_assign(&mut self, rhs: u32)
/= operation. Read moreSource§impl DivAssign<u64> for AnyNumeric
impl DivAssign<u64> for AnyNumeric
Source§fn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
/= operation. Read moreSource§impl DivAssign<u8> for AnyNumeric
impl DivAssign<u8> for AnyNumeric
Source§fn div_assign(&mut self, rhs: u8)
fn div_assign(&mut self, rhs: u8)
/= operation. Read moreSource§impl DivAssign<usize> for AnyNumeric
impl DivAssign<usize> for AnyNumeric
Source§fn div_assign(&mut self, rhs: usize)
fn div_assign(&mut self, rhs: usize)
/= operation. Read moreSource§impl DivAssign for AnyNumeric
impl DivAssign for AnyNumeric
Source§fn div_assign(&mut self, rhs: AnyNumeric)
fn div_assign(&mut self, rhs: AnyNumeric)
/= operation. Read moreSource§impl<const P: u32, const S: u32> From<Numeric<P, S>> for AnyNumeric
impl<const P: u32, const S: u32> From<Numeric<P, S>> for AnyNumeric
Source§fn from(n: Numeric<P, S>) -> AnyNumeric
fn from(n: Numeric<P, S>) -> AnyNumeric
Source§impl From<i128> for AnyNumeric
impl From<i128> for AnyNumeric
Source§fn from(value: i128) -> AnyNumeric
fn from(value: i128) -> AnyNumeric
Source§impl From<i16> for AnyNumeric
impl From<i16> for AnyNumeric
Source§fn from(value: i16) -> AnyNumeric
fn from(value: i16) -> AnyNumeric
Source§impl From<i32> for AnyNumeric
impl From<i32> for AnyNumeric
Source§fn from(value: i32) -> AnyNumeric
fn from(value: i32) -> AnyNumeric
Source§impl From<i64> for AnyNumeric
impl From<i64> for AnyNumeric
Source§fn from(value: i64) -> AnyNumeric
fn from(value: i64) -> AnyNumeric
Source§impl From<i8> for AnyNumeric
impl From<i8> for AnyNumeric
Source§fn from(value: i8) -> AnyNumeric
fn from(value: i8) -> AnyNumeric
Source§impl From<isize> for AnyNumeric
impl From<isize> for AnyNumeric
Source§fn from(value: isize) -> AnyNumeric
fn from(value: isize) -> AnyNumeric
Source§impl From<u128> for AnyNumeric
impl From<u128> for AnyNumeric
Source§fn from(value: u128) -> AnyNumeric
fn from(value: u128) -> AnyNumeric
Source§impl From<u16> for AnyNumeric
impl From<u16> for AnyNumeric
Source§fn from(value: u16) -> AnyNumeric
fn from(value: u16) -> AnyNumeric
Source§impl From<u32> for AnyNumeric
impl From<u32> for AnyNumeric
Source§fn from(value: u32) -> AnyNumeric
fn from(value: u32) -> AnyNumeric
Source§impl From<u64> for AnyNumeric
impl From<u64> for AnyNumeric
Source§fn from(value: u64) -> AnyNumeric
fn from(value: u64) -> AnyNumeric
Source§impl From<u8> for AnyNumeric
impl From<u8> for AnyNumeric
Source§fn from(value: u8) -> AnyNumeric
fn from(value: u8) -> AnyNumeric
Source§impl From<usize> for AnyNumeric
impl From<usize> for AnyNumeric
Source§fn from(value: usize) -> AnyNumeric
fn from(value: usize) -> AnyNumeric
Source§impl FromDatum for AnyNumeric
impl FromDatum for AnyNumeric
Source§unsafe fn from_polymorphic_datum(
datum: Datum,
is_null: bool,
_typoid: Oid,
) -> Option<AnyNumeric>where
AnyNumeric: Sized,
unsafe fn from_polymorphic_datum(
datum: Datum,
is_null: bool,
_typoid: Oid,
) -> Option<AnyNumeric>where
AnyNumeric: Sized,
from_datum for instantiating polymorphic types
which require preserving the dynamic type metadata. Read moreSource§const GET_TYPOID: bool = false
const GET_TYPOID: bool = false
from_datum?Source§unsafe fn from_datum(datum: Datum, is_null: bool) -> Option<Self>where
Self: Sized,
unsafe fn from_datum(datum: Datum, is_null: bool) -> Option<Self>where
Self: Sized,
Source§unsafe fn from_datum_in_memory_context(
memory_context: PgMemoryContexts,
datum: Datum,
is_null: bool,
typoid: Oid,
) -> Option<Self>where
Self: Sized,
unsafe fn from_datum_in_memory_context(
memory_context: PgMemoryContexts,
datum: Datum,
is_null: bool,
typoid: Oid,
) -> Option<Self>where
Self: Sized,
FromDatum::from_datum(...) from within that context. Read moreSource§unsafe fn try_from_datum(
datum: Datum,
is_null: bool,
type_oid: Oid,
) -> Result<Option<Self>, TryFromDatumError>
unsafe fn try_from_datum( datum: Datum, is_null: bool, type_oid: Oid, ) -> Result<Option<Self>, TryFromDatumError>
try_from_datum is a convenience wrapper around FromDatum::from_datum that returns a
a Result around an Option, as a Datum can be null. It’s intended to be used in
situations where the caller needs to know whether the type conversion succeeded or failed. Read moreSource§unsafe fn try_from_datum_in_memory_context(
memory_context: PgMemoryContexts,
datum: Datum,
is_null: bool,
type_oid: Oid,
) -> Result<Option<Self>, TryFromDatumError>
unsafe fn try_from_datum_in_memory_context( memory_context: PgMemoryContexts, datum: Datum, is_null: bool, type_oid: Oid, ) -> Result<Option<Self>, TryFromDatumError>
try_from_datum that switches to the given context to convert from DatumSource§impl FromStr for AnyNumeric
impl FromStr for AnyNumeric
Source§impl Hash for AnyNumeric
impl Hash for AnyNumeric
Source§impl IntoDatum for AnyNumeric
impl IntoDatum for AnyNumeric
Source§impl<const Q: u32, const T: u32> Mul<Numeric<Q, T>> for AnyNumeric
Numeric on the left, AnyNumeric on the right. Results in a new AnyNumeric
impl<const Q: u32, const T: u32> Mul<Numeric<Q, T>> for AnyNumeric
Numeric on the left, AnyNumeric on the right. Results in a new AnyNumeric
Source§impl Mul<f32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Mul<f32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Mul<f64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Mul<f64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Mul<i128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Mul<i128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Mul<i16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Mul<i16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Mul<i32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Mul<i32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Mul<i64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Mul<i64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Mul<i8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Mul<i8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Mul<isize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Mul<isize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Mul<u128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Mul<u128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Mul<u16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Mul<u16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Mul<u32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Mul<u32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Mul<u64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Mul<u64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Mul<u8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Mul<u8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Mul<usize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Mul<usize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Mul for AnyNumeric
impl Mul for AnyNumeric
Source§type Output = AnyNumeric
type Output = AnyNumeric
* operator.Source§fn mul(self, rhs: AnyNumeric) -> <AnyNumeric as Mul>::Output
fn mul(self, rhs: AnyNumeric) -> <AnyNumeric as Mul>::Output
* operation. Read moreSource§impl MulAssign<f32> for AnyNumeric
impl MulAssign<f32> for AnyNumeric
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
*= operation. Read moreSource§impl MulAssign<f64> for AnyNumeric
impl MulAssign<f64> for AnyNumeric
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
*= operation. Read moreSource§impl MulAssign<i128> for AnyNumeric
impl MulAssign<i128> for AnyNumeric
Source§fn mul_assign(&mut self, rhs: i128)
fn mul_assign(&mut self, rhs: i128)
*= operation. Read moreSource§impl MulAssign<i16> for AnyNumeric
impl MulAssign<i16> for AnyNumeric
Source§fn mul_assign(&mut self, rhs: i16)
fn mul_assign(&mut self, rhs: i16)
*= operation. Read moreSource§impl MulAssign<i32> for AnyNumeric
impl MulAssign<i32> for AnyNumeric
Source§fn mul_assign(&mut self, rhs: i32)
fn mul_assign(&mut self, rhs: i32)
*= operation. Read moreSource§impl MulAssign<i64> for AnyNumeric
impl MulAssign<i64> for AnyNumeric
Source§fn mul_assign(&mut self, rhs: i64)
fn mul_assign(&mut self, rhs: i64)
*= operation. Read moreSource§impl MulAssign<i8> for AnyNumeric
impl MulAssign<i8> for AnyNumeric
Source§fn mul_assign(&mut self, rhs: i8)
fn mul_assign(&mut self, rhs: i8)
*= operation. Read moreSource§impl MulAssign<isize> for AnyNumeric
impl MulAssign<isize> for AnyNumeric
Source§fn mul_assign(&mut self, rhs: isize)
fn mul_assign(&mut self, rhs: isize)
*= operation. Read moreSource§impl MulAssign<u128> for AnyNumeric
impl MulAssign<u128> for AnyNumeric
Source§fn mul_assign(&mut self, rhs: u128)
fn mul_assign(&mut self, rhs: u128)
*= operation. Read moreSource§impl MulAssign<u16> for AnyNumeric
impl MulAssign<u16> for AnyNumeric
Source§fn mul_assign(&mut self, rhs: u16)
fn mul_assign(&mut self, rhs: u16)
*= operation. Read moreSource§impl MulAssign<u32> for AnyNumeric
impl MulAssign<u32> for AnyNumeric
Source§fn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
*= operation. Read moreSource§impl MulAssign<u64> for AnyNumeric
impl MulAssign<u64> for AnyNumeric
Source§fn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
*= operation. Read moreSource§impl MulAssign<u8> for AnyNumeric
impl MulAssign<u8> for AnyNumeric
Source§fn mul_assign(&mut self, rhs: u8)
fn mul_assign(&mut self, rhs: u8)
*= operation. Read moreSource§impl MulAssign<usize> for AnyNumeric
impl MulAssign<usize> for AnyNumeric
Source§fn mul_assign(&mut self, rhs: usize)
fn mul_assign(&mut self, rhs: usize)
*= operation. Read moreSource§impl MulAssign for AnyNumeric
impl MulAssign for AnyNumeric
Source§fn mul_assign(&mut self, rhs: AnyNumeric)
fn mul_assign(&mut self, rhs: AnyNumeric)
*= operation. Read moreSource§impl Neg for AnyNumeric
impl Neg for AnyNumeric
Source§impl Ord for AnyNumeric
impl Ord for AnyNumeric
Source§fn cmp(&self, other: &AnyNumeric) -> Ordering
fn cmp(&self, other: &AnyNumeric) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AnyNumeric
impl PartialEq for AnyNumeric
Source§fn eq(&self, other: &AnyNumeric) -> bool
fn eq(&self, other: &AnyNumeric) -> bool
Postgres implementation detail: Unlike in Rust, Postgres considers NaN as equal
Source§fn ne(&self, other: &AnyNumeric) -> bool
fn ne(&self, other: &AnyNumeric) -> bool
!=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.Source§impl PartialOrd for AnyNumeric
impl PartialOrd for AnyNumeric
Source§fn partial_cmp(&self, other: &AnyNumeric) -> Option<Ordering>
fn partial_cmp(&self, other: &AnyNumeric) -> Option<Ordering>
Postgres implementation detail: Unlike in Rust, Postgres considers NaN as equal
Source§fn lt(&self, other: &AnyNumeric) -> bool
fn lt(&self, other: &AnyNumeric) -> bool
Source§fn le(&self, other: &AnyNumeric) -> bool
fn le(&self, other: &AnyNumeric) -> bool
Source§fn gt(&self, other: &AnyNumeric) -> bool
fn gt(&self, other: &AnyNumeric) -> bool
Source§impl RangeSubType for AnyNumeric
for numeric/numrange
impl RangeSubType for AnyNumeric
for numeric/numrange
fn range_type_oid() -> Oid
Source§impl<const Q: u32, const T: u32> Rem<Numeric<Q, T>> for AnyNumeric
Numeric on the left, AnyNumeric on the right. Results in a new AnyNumeric
impl<const Q: u32, const T: u32> Rem<Numeric<Q, T>> for AnyNumeric
Numeric on the left, AnyNumeric on the right. Results in a new AnyNumeric
Source§impl Rem<f32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Rem<f32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Rem<f64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Rem<f64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Rem<i128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Rem<i128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Rem<i16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Rem<i16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Rem<i32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Rem<i32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Rem<i64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Rem<i64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Rem<i8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Rem<i8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Rem<isize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Rem<isize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Rem<u128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Rem<u128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Rem<u16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Rem<u16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Rem<u32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Rem<u32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Rem<u64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Rem<u64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Rem<u8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Rem<u8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Rem<usize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Rem<usize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Rem for AnyNumeric
impl Rem for AnyNumeric
Source§type Output = AnyNumeric
type Output = AnyNumeric
% operator.Source§fn rem(self, rhs: AnyNumeric) -> <AnyNumeric as Rem>::Output
fn rem(self, rhs: AnyNumeric) -> <AnyNumeric as Rem>::Output
% operation. Read moreSource§impl RemAssign<f32> for AnyNumeric
impl RemAssign<f32> for AnyNumeric
Source§fn rem_assign(&mut self, rhs: f32)
fn rem_assign(&mut self, rhs: f32)
%= operation. Read moreSource§impl RemAssign<f64> for AnyNumeric
impl RemAssign<f64> for AnyNumeric
Source§fn rem_assign(&mut self, rhs: f64)
fn rem_assign(&mut self, rhs: f64)
%= operation. Read moreSource§impl RemAssign<i128> for AnyNumeric
impl RemAssign<i128> for AnyNumeric
Source§fn rem_assign(&mut self, rhs: i128)
fn rem_assign(&mut self, rhs: i128)
%= operation. Read moreSource§impl RemAssign<i16> for AnyNumeric
impl RemAssign<i16> for AnyNumeric
Source§fn rem_assign(&mut self, rhs: i16)
fn rem_assign(&mut self, rhs: i16)
%= operation. Read moreSource§impl RemAssign<i32> for AnyNumeric
impl RemAssign<i32> for AnyNumeric
Source§fn rem_assign(&mut self, rhs: i32)
fn rem_assign(&mut self, rhs: i32)
%= operation. Read moreSource§impl RemAssign<i64> for AnyNumeric
impl RemAssign<i64> for AnyNumeric
Source§fn rem_assign(&mut self, rhs: i64)
fn rem_assign(&mut self, rhs: i64)
%= operation. Read moreSource§impl RemAssign<i8> for AnyNumeric
impl RemAssign<i8> for AnyNumeric
Source§fn rem_assign(&mut self, rhs: i8)
fn rem_assign(&mut self, rhs: i8)
%= operation. Read moreSource§impl RemAssign<isize> for AnyNumeric
impl RemAssign<isize> for AnyNumeric
Source§fn rem_assign(&mut self, rhs: isize)
fn rem_assign(&mut self, rhs: isize)
%= operation. Read moreSource§impl RemAssign<u128> for AnyNumeric
impl RemAssign<u128> for AnyNumeric
Source§fn rem_assign(&mut self, rhs: u128)
fn rem_assign(&mut self, rhs: u128)
%= operation. Read moreSource§impl RemAssign<u16> for AnyNumeric
impl RemAssign<u16> for AnyNumeric
Source§fn rem_assign(&mut self, rhs: u16)
fn rem_assign(&mut self, rhs: u16)
%= operation. Read moreSource§impl RemAssign<u32> for AnyNumeric
impl RemAssign<u32> for AnyNumeric
Source§fn rem_assign(&mut self, rhs: u32)
fn rem_assign(&mut self, rhs: u32)
%= operation. Read moreSource§impl RemAssign<u64> for AnyNumeric
impl RemAssign<u64> for AnyNumeric
Source§fn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
%= operation. Read moreSource§impl RemAssign<u8> for AnyNumeric
impl RemAssign<u8> for AnyNumeric
Source§fn rem_assign(&mut self, rhs: u8)
fn rem_assign(&mut self, rhs: u8)
%= operation. Read moreSource§impl RemAssign<usize> for AnyNumeric
impl RemAssign<usize> for AnyNumeric
Source§fn rem_assign(&mut self, rhs: usize)
fn rem_assign(&mut self, rhs: usize)
%= operation. Read moreSource§impl RemAssign for AnyNumeric
impl RemAssign for AnyNumeric
Source§fn rem_assign(&mut self, rhs: AnyNumeric)
fn rem_assign(&mut self, rhs: AnyNumeric)
%= operation. Read moreSource§impl Serialize for AnyNumeric
impl Serialize for AnyNumeric
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Source§impl SqlTranslatable for AnyNumeric
impl SqlTranslatable for AnyNumeric
fn argument_sql() -> Result<SqlMapping, ArgumentError>
fn return_sql() -> Result<Returns, ReturnsError>
fn type_name() -> &'static str
fn variadic() -> bool
fn optional() -> bool
fn entity() -> FunctionMetadataTypeEntity
Source§impl<const Q: u32, const T: u32> Sub<Numeric<Q, T>> for AnyNumeric
Numeric on the left, AnyNumeric on the right. Results in a new AnyNumeric
impl<const Q: u32, const T: u32> Sub<Numeric<Q, T>> for AnyNumeric
Numeric on the left, AnyNumeric on the right. Results in a new AnyNumeric
Source§impl Sub<f32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Sub<f32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Sub<f64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Sub<f64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Sub<i128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Sub<i128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Sub<i16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Sub<i16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Sub<i32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Sub<i32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Sub<i64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Sub<i64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Sub<i8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Sub<i8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Sub<isize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Sub<isize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Sub<u128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Sub<u128> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Sub<u16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Sub<u16> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Sub<u32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Sub<u32> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Sub<u64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Sub<u64> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Sub<u8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Sub<u8> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Sub<usize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
impl Sub<usize> for AnyNumeric
AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric
Source§impl Sub for AnyNumeric
impl Sub for AnyNumeric
Source§type Output = AnyNumeric
type Output = AnyNumeric
- operator.Source§fn sub(self, rhs: AnyNumeric) -> <AnyNumeric as Sub>::Output
fn sub(self, rhs: AnyNumeric) -> <AnyNumeric as Sub>::Output
- operation. Read moreSource§impl SubAssign<f32> for AnyNumeric
impl SubAssign<f32> for AnyNumeric
Source§fn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
-= operation. Read moreSource§impl SubAssign<f64> for AnyNumeric
impl SubAssign<f64> for AnyNumeric
Source§fn sub_assign(&mut self, rhs: f64)
fn sub_assign(&mut self, rhs: f64)
-= operation. Read moreSource§impl SubAssign<i128> for AnyNumeric
impl SubAssign<i128> for AnyNumeric
Source§fn sub_assign(&mut self, rhs: i128)
fn sub_assign(&mut self, rhs: i128)
-= operation. Read moreSource§impl SubAssign<i16> for AnyNumeric
impl SubAssign<i16> for AnyNumeric
Source§fn sub_assign(&mut self, rhs: i16)
fn sub_assign(&mut self, rhs: i16)
-= operation. Read moreSource§impl SubAssign<i32> for AnyNumeric
impl SubAssign<i32> for AnyNumeric
Source§fn sub_assign(&mut self, rhs: i32)
fn sub_assign(&mut self, rhs: i32)
-= operation. Read moreSource§impl SubAssign<i64> for AnyNumeric
impl SubAssign<i64> for AnyNumeric
Source§fn sub_assign(&mut self, rhs: i64)
fn sub_assign(&mut self, rhs: i64)
-= operation. Read moreSource§impl SubAssign<i8> for AnyNumeric
impl SubAssign<i8> for AnyNumeric
Source§fn sub_assign(&mut self, rhs: i8)
fn sub_assign(&mut self, rhs: i8)
-= operation. Read moreSource§impl SubAssign<isize> for AnyNumeric
impl SubAssign<isize> for AnyNumeric
Source§fn sub_assign(&mut self, rhs: isize)
fn sub_assign(&mut self, rhs: isize)
-= operation. Read moreSource§impl SubAssign<u128> for AnyNumeric
impl SubAssign<u128> for AnyNumeric
Source§fn sub_assign(&mut self, rhs: u128)
fn sub_assign(&mut self, rhs: u128)
-= operation. Read moreSource§impl SubAssign<u16> for AnyNumeric
impl SubAssign<u16> for AnyNumeric
Source§fn sub_assign(&mut self, rhs: u16)
fn sub_assign(&mut self, rhs: u16)
-= operation. Read moreSource§impl SubAssign<u32> for AnyNumeric
impl SubAssign<u32> for AnyNumeric
Source§fn sub_assign(&mut self, rhs: u32)
fn sub_assign(&mut self, rhs: u32)
-= operation. Read moreSource§impl SubAssign<u64> for AnyNumeric
impl SubAssign<u64> for AnyNumeric
Source§fn sub_assign(&mut self, rhs: u64)
fn sub_assign(&mut self, rhs: u64)
-= operation. Read moreSource§impl SubAssign<u8> for AnyNumeric
impl SubAssign<u8> for AnyNumeric
Source§fn sub_assign(&mut self, rhs: u8)
fn sub_assign(&mut self, rhs: u8)
-= operation. Read moreSource§impl SubAssign<usize> for AnyNumeric
impl SubAssign<usize> for AnyNumeric
Source§fn sub_assign(&mut self, rhs: usize)
fn sub_assign(&mut self, rhs: usize)
-= operation. Read moreSource§impl SubAssign for AnyNumeric
impl SubAssign for AnyNumeric
Source§fn sub_assign(&mut self, rhs: AnyNumeric)
fn sub_assign(&mut self, rhs: AnyNumeric)
-= operation. Read moreSource§impl Sum for AnyNumeric
impl Sum for AnyNumeric
Source§fn sum<I>(iter: I) -> AnyNumericwhere
I: Iterator<Item = AnyNumeric>,
fn sum<I>(iter: I) -> AnyNumericwhere
I: Iterator<Item = AnyNumeric>,
Self from the elements by “summing up”
the items.Source§impl TryFrom<&CStr> for AnyNumeric
impl TryFrom<&CStr> for AnyNumeric
Source§impl TryFrom<&str> for AnyNumeric
impl TryFrom<&str> for AnyNumeric
Source§impl TryFrom<f32> for AnyNumeric
impl TryFrom<f32> for AnyNumeric
Source§impl TryFrom<f64> for AnyNumeric
impl TryFrom<f64> for AnyNumeric
impl Eq for AnyNumeric
Postgres implementation detail: Unlike in Rust, Postgres considers NaN as equal
Auto Trait Implementations§
impl Freeze for AnyNumeric
impl RefUnwindSafe for AnyNumeric
impl Send for AnyNumeric
impl Sync for AnyNumeric
impl Unpin for AnyNumeric
impl UnwindSafe for AnyNumeric
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
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
key and return true if they are equal.Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.