Struct pgrx::datum::numeric::AnyNumeric
source · 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) -> Self
pub fn abs(&self) -> Self
The absolute value of this AnyNumeric
sourcepub fn log(&self, base: AnyNumeric) -> Self
pub fn log(&self, base: AnyNumeric) -> Self
Compute the logarithm of this AnyNumeric
in the given base
sourcepub fn exp(x: &AnyNumeric) -> Self
pub fn exp(x: &AnyNumeric) -> Self
Raise e
to the power of x
sourcepub fn sqrt(&self) -> Self
pub fn sqrt(&self) -> Self
Compute the square root of this AnyNumeric
sourcepub fn ceil(&self) -> Self
pub fn ceil(&self) -> Self
Return the smallest integer greater than or equal to this AnyNumeric
sourcepub fn floor(&self) -> Self
pub fn floor(&self) -> Self
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 P: u32, const S: u32> Add<AnyNumeric> for Numeric<P, S>
impl<const P: u32, const S: u32> Add<AnyNumeric> for Numeric<P, S>
AnyNumeric
on the left, Numeric
on the right. Results in a new AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl Add<AnyNumeric> for f32
impl Add<AnyNumeric> for f32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl Add<AnyNumeric> for f64
impl Add<AnyNumeric> for f64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl Add<AnyNumeric> for i128
impl Add<AnyNumeric> for i128
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl Add<AnyNumeric> for i16
impl Add<AnyNumeric> for i16
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl Add<AnyNumeric> for i32
impl Add<AnyNumeric> for i32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl Add<AnyNumeric> for i64
impl Add<AnyNumeric> for i64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl Add<AnyNumeric> for i8
impl Add<AnyNumeric> for i8
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl Add<AnyNumeric> for isize
impl Add<AnyNumeric> for isize
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl Add<AnyNumeric> for u128
impl Add<AnyNumeric> for u128
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl Add<AnyNumeric> for u16
impl Add<AnyNumeric> for u16
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl Add<AnyNumeric> for u32
impl Add<AnyNumeric> for u32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl Add<AnyNumeric> for u64
impl Add<AnyNumeric> for u64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl Add<AnyNumeric> for u8
impl Add<AnyNumeric> for u8
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl Add<AnyNumeric> for usize
impl Add<AnyNumeric> for usize
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§impl<const Q: u32, const T: u32> Add<Numeric<Q, T>> for 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
impl Add<f32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Add<f64> for 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
impl Add<i128> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Add<i16> for 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
impl Add<i32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Add<i64> for 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
impl Add<i8> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Add<isize> for 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
impl Add<u128> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Add<u16> for 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
impl Add<u32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Add<u64> for 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
impl Add<u8> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Add<usize> for 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
§type Output = AnyNumeric
type Output = AnyNumeric
+
operator.source§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§impl<'de> Deserialize<'de> for AnyNumeric
impl<'de> Deserialize<'de> for AnyNumeric
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>,
source§impl Display for AnyNumeric
impl Display for AnyNumeric
source§impl<const P: u32, const S: u32> Div<AnyNumeric> for Numeric<P, S>
impl<const P: u32, const S: u32> Div<AnyNumeric> for Numeric<P, S>
AnyNumeric
on the left, Numeric
on the right. Results in a new AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl Div<AnyNumeric> for f32
impl Div<AnyNumeric> for f32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl Div<AnyNumeric> for f64
impl Div<AnyNumeric> for f64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl Div<AnyNumeric> for i128
impl Div<AnyNumeric> for i128
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl Div<AnyNumeric> for i16
impl Div<AnyNumeric> for i16
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl Div<AnyNumeric> for i32
impl Div<AnyNumeric> for i32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl Div<AnyNumeric> for i64
impl Div<AnyNumeric> for i64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl Div<AnyNumeric> for i8
impl Div<AnyNumeric> for i8
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl Div<AnyNumeric> for isize
impl Div<AnyNumeric> for isize
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl Div<AnyNumeric> for u128
impl Div<AnyNumeric> for u128
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl Div<AnyNumeric> for u16
impl Div<AnyNumeric> for u16
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl Div<AnyNumeric> for u32
impl Div<AnyNumeric> for u32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl Div<AnyNumeric> for u64
impl Div<AnyNumeric> for u64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl Div<AnyNumeric> for u8
impl Div<AnyNumeric> for u8
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl Div<AnyNumeric> for usize
impl Div<AnyNumeric> for usize
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§impl<const Q: u32, const T: u32> Div<Numeric<Q, T>> for 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
impl Div<f32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Div<f64> for 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
impl Div<i128> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Div<i16> for 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
impl Div<i32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Div<i64> for 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
impl Div<i8> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Div<isize> for 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
impl Div<u128> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Div<u16> for 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
impl Div<u32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Div<u64> for 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
impl Div<u8> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Div<usize> for 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
§type Output = AnyNumeric
type Output = AnyNumeric
/
operator.source§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 From<i128> for AnyNumeric
impl From<i128> for AnyNumeric
source§impl From<i16> for AnyNumeric
impl From<i16> for AnyNumeric
source§impl From<i32> for AnyNumeric
impl From<i32> for AnyNumeric
source§impl From<i64> for AnyNumeric
impl From<i64> for AnyNumeric
source§impl From<i8> for AnyNumeric
impl From<i8> for AnyNumeric
source§impl From<isize> for AnyNumeric
impl From<isize> for AnyNumeric
source§impl From<u128> for AnyNumeric
impl From<u128> for AnyNumeric
source§impl From<u16> for AnyNumeric
impl From<u16> for AnyNumeric
source§impl From<u32> for AnyNumeric
impl From<u32> for AnyNumeric
source§impl From<u64> for AnyNumeric
impl From<u64> for AnyNumeric
source§impl From<u8> for AnyNumeric
impl From<u8> for AnyNumeric
source§impl From<usize> for AnyNumeric
impl From<usize> for AnyNumeric
source§impl FromDatum for AnyNumeric
impl FromDatum for AnyNumeric
source§unsafe fn from_polymorphic_datum(
datum: Datum,
is_null: bool,
_typoid: Oid
) -> Option<Self>where
Self: Sized,
unsafe fn from_polymorphic_datum(
datum: Datum,
is_null: bool,
_typoid: Oid
) -> Option<Self>where
Self: 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 P: u32, const S: u32> Mul<AnyNumeric> for Numeric<P, S>
impl<const P: u32, const S: u32> Mul<AnyNumeric> for Numeric<P, S>
AnyNumeric
on the left, Numeric
on the right. Results in a new AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl Mul<AnyNumeric> for f32
impl Mul<AnyNumeric> for f32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl Mul<AnyNumeric> for f64
impl Mul<AnyNumeric> for f64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl Mul<AnyNumeric> for i128
impl Mul<AnyNumeric> for i128
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl Mul<AnyNumeric> for i16
impl Mul<AnyNumeric> for i16
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl Mul<AnyNumeric> for i32
impl Mul<AnyNumeric> for i32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl Mul<AnyNumeric> for i64
impl Mul<AnyNumeric> for i64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl Mul<AnyNumeric> for i8
impl Mul<AnyNumeric> for i8
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl Mul<AnyNumeric> for isize
impl Mul<AnyNumeric> for isize
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl Mul<AnyNumeric> for u128
impl Mul<AnyNumeric> for u128
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl Mul<AnyNumeric> for u16
impl Mul<AnyNumeric> for u16
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl Mul<AnyNumeric> for u32
impl Mul<AnyNumeric> for u32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl Mul<AnyNumeric> for u64
impl Mul<AnyNumeric> for u64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl Mul<AnyNumeric> for u8
impl Mul<AnyNumeric> for u8
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl Mul<AnyNumeric> for usize
impl Mul<AnyNumeric> for usize
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§impl<const Q: u32, const T: u32> Mul<Numeric<Q, T>> for 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
impl Mul<f32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Mul<f64> for 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
impl Mul<i128> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Mul<i16> for 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
impl Mul<i32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Mul<i64> for 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
impl Mul<i8> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Mul<isize> for 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
impl Mul<u128> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Mul<u16> for 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
impl Mul<u32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Mul<u64> for 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
impl Mul<u8> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Mul<usize> for 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
§type Output = AnyNumeric
type Output = AnyNumeric
*
operator.source§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§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: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
Postgres implementation detail: Unlike in Rust, Postgres considers NaN
as equal
source§fn le(&self, other: &Self) -> bool
fn le(&self, other: &Self) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<const P: u32, const S: u32> Rem<AnyNumeric> for Numeric<P, S>
impl<const P: u32, const S: u32> Rem<AnyNumeric> for Numeric<P, S>
AnyNumeric
on the left, Numeric
on the right. Results in a new AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl Rem<AnyNumeric> for f32
impl Rem<AnyNumeric> for f32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl Rem<AnyNumeric> for f64
impl Rem<AnyNumeric> for f64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl Rem<AnyNumeric> for i128
impl Rem<AnyNumeric> for i128
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl Rem<AnyNumeric> for i16
impl Rem<AnyNumeric> for i16
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl Rem<AnyNumeric> for i32
impl Rem<AnyNumeric> for i32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl Rem<AnyNumeric> for i64
impl Rem<AnyNumeric> for i64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl Rem<AnyNumeric> for i8
impl Rem<AnyNumeric> for i8
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl Rem<AnyNumeric> for isize
impl Rem<AnyNumeric> for isize
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl Rem<AnyNumeric> for u128
impl Rem<AnyNumeric> for u128
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl Rem<AnyNumeric> for u16
impl Rem<AnyNumeric> for u16
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl Rem<AnyNumeric> for u32
impl Rem<AnyNumeric> for u32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl Rem<AnyNumeric> for u64
impl Rem<AnyNumeric> for u64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl Rem<AnyNumeric> for u8
impl Rem<AnyNumeric> for u8
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl Rem<AnyNumeric> for usize
impl Rem<AnyNumeric> for usize
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§impl<const Q: u32, const T: u32> Rem<Numeric<Q, T>> for 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
impl Rem<f32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Rem<f64> for 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
impl Rem<i128> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Rem<i16> for 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
impl Rem<i32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Rem<i64> for 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
impl Rem<i8> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Rem<isize> for 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
impl Rem<u128> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Rem<u16> for 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
impl Rem<u32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Rem<u64> for 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
impl Rem<u8> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Rem<usize> for 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
§type Output = AnyNumeric
type Output = AnyNumeric
%
operator.source§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§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 P: u32, const S: u32> Sub<AnyNumeric> for Numeric<P, S>
impl<const P: u32, const S: u32> Sub<AnyNumeric> for Numeric<P, S>
AnyNumeric
on the left, Numeric
on the right. Results in a new AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl Sub<AnyNumeric> for f32
impl Sub<AnyNumeric> for f32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl Sub<AnyNumeric> for f64
impl Sub<AnyNumeric> for f64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl Sub<AnyNumeric> for i128
impl Sub<AnyNumeric> for i128
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl Sub<AnyNumeric> for i16
impl Sub<AnyNumeric> for i16
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl Sub<AnyNumeric> for i32
impl Sub<AnyNumeric> for i32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl Sub<AnyNumeric> for i64
impl Sub<AnyNumeric> for i64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl Sub<AnyNumeric> for i8
impl Sub<AnyNumeric> for i8
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl Sub<AnyNumeric> for isize
impl Sub<AnyNumeric> for isize
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl Sub<AnyNumeric> for u128
impl Sub<AnyNumeric> for u128
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl Sub<AnyNumeric> for u16
impl Sub<AnyNumeric> for u16
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl Sub<AnyNumeric> for u32
impl Sub<AnyNumeric> for u32
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl Sub<AnyNumeric> for u64
impl Sub<AnyNumeric> for u64
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl Sub<AnyNumeric> for u8
impl Sub<AnyNumeric> for u8
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl Sub<AnyNumeric> for usize
impl Sub<AnyNumeric> for usize
Rust primitive on the left, AnyNumeric
on the right. Results in an AnyNumeric
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§impl<const Q: u32, const T: u32> Sub<Numeric<Q, T>> for 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
impl Sub<f32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Sub<f64> for 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
impl Sub<i128> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Sub<i16> for 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
impl Sub<i32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Sub<i64> for 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
impl Sub<i8> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Sub<isize> for 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
impl Sub<u128> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Sub<u16> for 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
impl Sub<u32> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Sub<u64> for 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
impl Sub<u8> for AnyNumeric
AnyNumeric
on the left, rust primitive on the right. Results in an AnyNumeric
source§impl Sub<usize> for 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
§type Output = AnyNumeric
type Output = AnyNumeric
-
operator.source§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§impl TryFrom<&CStr> for AnyNumeric
impl TryFrom<&CStr> for AnyNumeric
source§impl TryFrom<&str> for AnyNumeric
impl TryFrom<&str> for AnyNumeric
source§impl TryFrom<AnyNumeric> for f32
impl TryFrom<AnyNumeric> for f32
source§impl TryFrom<AnyNumeric> for f64
impl TryFrom<AnyNumeric> for f64
source§impl TryFrom<AnyNumeric> for i128
impl TryFrom<AnyNumeric> for i128
Try to convert using the signed equivalent. If that fails, then try using slower String conversion
source§impl TryFrom<AnyNumeric> for i16
impl TryFrom<AnyNumeric> for i16
source§impl TryFrom<AnyNumeric> for i32
impl TryFrom<AnyNumeric> for i32
source§impl TryFrom<AnyNumeric> for i64
impl TryFrom<AnyNumeric> for i64
source§impl TryFrom<AnyNumeric> for i8
impl TryFrom<AnyNumeric> for i8
source§impl TryFrom<AnyNumeric> for isize
impl TryFrom<AnyNumeric> for isize
source§impl TryFrom<AnyNumeric> for u128
impl TryFrom<AnyNumeric> for u128
Try to convert using the signed equivalent. If that fails, then try using slower String conversion
source§impl TryFrom<AnyNumeric> for u16
impl TryFrom<AnyNumeric> for u16
Try to convert using the signed equivalent. If that fails, then try using slower String conversion
source§impl TryFrom<AnyNumeric> for u32
impl TryFrom<AnyNumeric> for u32
Try to convert using the signed equivalent. If that fails, then try using slower String conversion
source§impl TryFrom<AnyNumeric> for u64
impl TryFrom<AnyNumeric> for u64
Try to convert using the signed equivalent. If that fails, then try using slower String conversion
source§impl TryFrom<AnyNumeric> for u8
impl TryFrom<AnyNumeric> for u8
Try to convert using the signed equivalent. If that fails, then try using slower String conversion
source§impl TryFrom<AnyNumeric> for usize
impl TryFrom<AnyNumeric> for usize
Try to convert using the signed equivalent. If that fails, then try using slower String conversion
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<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.