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

source

pub fn sign(&self) -> Sign

Returns the sign of this AnyNumeric

source

pub fn is_nan(&self) -> bool

Is this AnyNumeric not-a-number?

source

pub fn abs(&self) -> Self

The absolute value of this AnyNumeric

source

pub fn log(&self, base: AnyNumeric) -> Self

Compute the logarithm of this AnyNumeric in the given base

source

pub fn exp(x: &AnyNumeric) -> Self

Raise e to the power of x

source

pub fn sqrt(&self) -> Self

Compute the square root of this AnyNumeric

source

pub fn ceil(&self) -> Self

Return the smallest integer greater than or equal to this AnyNumeric

source

pub fn floor(&self) -> Self

Return the largest integer equal to or less than this AnyNumeric

source

pub fn gcd(&self, n: &AnyNumeric) -> AnyNumeric

Calculate the greatest common divisor of this an another AnyNumeric

source

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.

source

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>

AnyNumeric on the left, Numeric on the right. Results in a new AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNumeric> for f32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNumeric> for f64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNumeric> for i128

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNumeric> for i16

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNumeric> for i32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNumeric> for i64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNumeric> for i8

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNumeric> for isize

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNumeric> for u128

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNumeric> for u16

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNumeric> for u32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNumeric> for u64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNumeric> for u8

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNumeric> for usize

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
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

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: Numeric<Q, T>) -> Self::Output

Performs the + operation. Read more
source§

impl Add<f32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: f32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<f64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: f64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i128> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: i128) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i16> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: i16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: i32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: i64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i8> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: i8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<isize> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: isize) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u128> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: u128) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u16> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: u16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: u32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: u64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u8> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: u8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<usize> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: usize) -> Self::Output

Performs the + operation. Read more
source§

impl Add for AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNumeric) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<f32> for AnyNumeric

source§

fn add_assign(&mut self, rhs: f32)

Performs the += operation. Read more
source§

impl AddAssign<f64> for AnyNumeric

source§

fn add_assign(&mut self, rhs: f64)

Performs the += operation. Read more
source§

impl AddAssign<i128> for AnyNumeric

source§

fn add_assign(&mut self, rhs: i128)

Performs the += operation. Read more
source§

impl AddAssign<i16> for AnyNumeric

source§

fn add_assign(&mut self, rhs: i16)

Performs the += operation. Read more
source§

impl AddAssign<i32> for AnyNumeric

source§

fn add_assign(&mut self, rhs: i32)

Performs the += operation. Read more
source§

impl AddAssign<i64> for AnyNumeric

source§

fn add_assign(&mut self, rhs: i64)

Performs the += operation. Read more
source§

impl AddAssign<i8> for AnyNumeric

source§

fn add_assign(&mut self, rhs: i8)

Performs the += operation. Read more
source§

impl AddAssign<isize> for AnyNumeric

source§

fn add_assign(&mut self, rhs: isize)

Performs the += operation. Read more
source§

impl AddAssign<u128> for AnyNumeric

source§

fn add_assign(&mut self, rhs: u128)

Performs the += operation. Read more
source§

impl AddAssign<u16> for AnyNumeric

source§

fn add_assign(&mut self, rhs: u16)

Performs the += operation. Read more
source§

impl AddAssign<u32> for AnyNumeric

source§

fn add_assign(&mut self, rhs: u32)

Performs the += operation. Read more
source§

impl AddAssign<u64> for AnyNumeric

source§

fn add_assign(&mut self, rhs: u64)

Performs the += operation. Read more
source§

impl AddAssign<u8> for AnyNumeric

source§

fn add_assign(&mut self, rhs: u8)

Performs the += operation. Read more
source§

impl AddAssign<usize> for AnyNumeric

source§

fn add_assign(&mut self, rhs: usize)

Performs the += operation. Read more
source§

impl AddAssign for AnyNumeric

source§

fn add_assign(&mut self, rhs: AnyNumeric)

Performs the += operation. Read more
source§

impl Clone for AnyNumeric

source§

fn clone(&self) -> AnyNumeric

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AnyNumeric

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for AnyNumeric

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for AnyNumeric

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for AnyNumeric

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

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

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl Div<AnyNumeric> for f32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl Div<AnyNumeric> for f64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl Div<AnyNumeric> for i128

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl Div<AnyNumeric> for i16

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl Div<AnyNumeric> for i32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl Div<AnyNumeric> for i64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl Div<AnyNumeric> for i8

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl Div<AnyNumeric> for isize

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl Div<AnyNumeric> for u128

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl Div<AnyNumeric> for u16

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl Div<AnyNumeric> for u32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl Div<AnyNumeric> for u64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl Div<AnyNumeric> for u8

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl Div<AnyNumeric> for usize

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
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

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: Numeric<Q, T>) -> Self::Output

Performs the / operation. Read more
source§

impl Div<f32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: f32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<f64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i128> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: i128) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i16> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: i16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: i32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: i64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i8> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: i8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<isize> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: isize) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u128> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: u128) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u16> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: u16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: u32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: u64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u8> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: u8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<usize> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: usize) -> Self::Output

Performs the / operation. Read more
source§

impl Div for AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the / operator.
source§

fn div(self, rhs: AnyNumeric) -> Self::Output

Performs the / operation. Read more
source§

impl DivAssign<f32> for AnyNumeric

source§

fn div_assign(&mut self, rhs: f32)

Performs the /= operation. Read more
source§

impl DivAssign<f64> for AnyNumeric

source§

fn div_assign(&mut self, rhs: f64)

Performs the /= operation. Read more
source§

impl DivAssign<i128> for AnyNumeric

source§

fn div_assign(&mut self, rhs: i128)

Performs the /= operation. Read more
source§

impl DivAssign<i16> for AnyNumeric

source§

fn div_assign(&mut self, rhs: i16)

Performs the /= operation. Read more
source§

impl DivAssign<i32> for AnyNumeric

source§

fn div_assign(&mut self, rhs: i32)

Performs the /= operation. Read more
source§

impl DivAssign<i64> for AnyNumeric

source§

fn div_assign(&mut self, rhs: i64)

Performs the /= operation. Read more
source§

impl DivAssign<i8> for AnyNumeric

source§

fn div_assign(&mut self, rhs: i8)

Performs the /= operation. Read more
source§

impl DivAssign<isize> for AnyNumeric

source§

fn div_assign(&mut self, rhs: isize)

Performs the /= operation. Read more
source§

impl DivAssign<u128> for AnyNumeric

source§

fn div_assign(&mut self, rhs: u128)

Performs the /= operation. Read more
source§

impl DivAssign<u16> for AnyNumeric

source§

fn div_assign(&mut self, rhs: u16)

Performs the /= operation. Read more
source§

impl DivAssign<u32> for AnyNumeric

source§

fn div_assign(&mut self, rhs: u32)

Performs the /= operation. Read more
source§

impl DivAssign<u64> for AnyNumeric

source§

fn div_assign(&mut self, rhs: u64)

Performs the /= operation. Read more
source§

impl DivAssign<u8> for AnyNumeric

source§

fn div_assign(&mut self, rhs: u8)

Performs the /= operation. Read more
source§

impl DivAssign<usize> for AnyNumeric

source§

fn div_assign(&mut self, rhs: usize)

Performs the /= operation. Read more
source§

impl DivAssign for AnyNumeric

source§

fn div_assign(&mut self, rhs: AnyNumeric)

Performs the /= operation. Read more
source§

impl<const P: u32, const S: u32> From<Numeric<P, S>> for AnyNumeric

source§

fn from(n: Numeric<P, S>) -> Self

Converts to this type from the input type.
source§

impl From<i128> for AnyNumeric

source§

fn from(value: i128) -> Self

Converts to this type from the input type.
source§

impl From<i16> for AnyNumeric

source§

fn from(value: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for AnyNumeric

source§

fn from(value: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for AnyNumeric

source§

fn from(value: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for AnyNumeric

source§

fn from(value: i8) -> Self

Converts to this type from the input type.
source§

impl From<isize> for AnyNumeric

source§

fn from(value: isize) -> Self

Converts to this type from the input type.
source§

impl From<u128> for AnyNumeric

source§

fn from(value: u128) -> Self

Converts to this type from the input type.
source§

impl From<u16> for AnyNumeric

source§

fn from(value: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for AnyNumeric

source§

fn from(value: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for AnyNumeric

source§

fn from(value: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for AnyNumeric

source§

fn from(value: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for AnyNumeric

source§

fn from(value: usize) -> Self

Converts to this type from the input type.
source§

impl FromDatum for AnyNumeric

source§

unsafe fn from_polymorphic_datum( datum: Datum, is_null: bool, _typoid: Oid ) -> Option<Self>
where Self: Sized,

Like from_datum for instantiating polymorphic types which require preserving the dynamic type metadata. Read more
source§

const GET_TYPOID: bool = false

Should a type OID be fetched when calling from_datum?
source§

unsafe fn from_datum(datum: Datum, is_null: bool) -> Option<Self>
where Self: Sized,

Safety Read more
source§

unsafe fn from_datum_in_memory_context( memory_context: PgMemoryContexts, datum: Datum, is_null: bool, typoid: Oid ) -> Option<Self>
where Self: Sized,

Default implementation switched to the specified memory context and then simply calls FromDatum::from_datum(...) from within that context. Read more
source§

unsafe fn try_from_datum( datum: Datum, is_null: bool, type_oid: Oid ) -> Result<Option<Self>, TryFromDatumError>
where Self: Sized + IntoDatum,

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 more
source§

unsafe fn try_from_datum_in_memory_context( memory_context: PgMemoryContexts, datum: Datum, is_null: bool, type_oid: Oid ) -> Result<Option<Self>, TryFromDatumError>
where Self: Sized + IntoDatum,

A version of try_from_datum that switches to the given context to convert from Datum
source§

impl FromStr for AnyNumeric

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for AnyNumeric

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl IntoDatum for AnyNumeric

source§

fn into_datum(self) -> Option<Datum>

source§

fn type_oid() -> Oid

source§

fn composite_type_oid(&self) -> Option<Oid>

source§

fn array_type_oid() -> Oid

source§

fn is_compatible_with(other: Oid) -> bool

Is a Datum of this type compatible with another Postgres type? Read more
source§

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

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNumeric> for f32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNumeric> for f64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNumeric> for i128

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNumeric> for i16

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNumeric> for i32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNumeric> for i64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNumeric> for i8

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNumeric> for isize

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNumeric> for u128

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNumeric> for u16

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNumeric> for u32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNumeric> for u64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNumeric> for u8

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNumeric> for usize

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
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

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Numeric<Q, T>) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<f32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<f64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i128> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i128) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i16> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i8> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<isize> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: isize) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u128> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u128) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u16> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u8> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<usize> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: usize) -> Self::Output

Performs the * operation. Read more
source§

impl Mul for AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNumeric) -> Self::Output

Performs the * operation. Read more
source§

impl MulAssign<f32> for AnyNumeric

source§

fn mul_assign(&mut self, rhs: f32)

Performs the *= operation. Read more
source§

impl MulAssign<f64> for AnyNumeric

source§

fn mul_assign(&mut self, rhs: f64)

Performs the *= operation. Read more
source§

impl MulAssign<i128> for AnyNumeric

source§

fn mul_assign(&mut self, rhs: i128)

Performs the *= operation. Read more
source§

impl MulAssign<i16> for AnyNumeric

source§

fn mul_assign(&mut self, rhs: i16)

Performs the *= operation. Read more
source§

impl MulAssign<i32> for AnyNumeric

source§

fn mul_assign(&mut self, rhs: i32)

Performs the *= operation. Read more
source§

impl MulAssign<i64> for AnyNumeric

source§

fn mul_assign(&mut self, rhs: i64)

Performs the *= operation. Read more
source§

impl MulAssign<i8> for AnyNumeric

source§

fn mul_assign(&mut self, rhs: i8)

Performs the *= operation. Read more
source§

impl MulAssign<isize> for AnyNumeric

source§

fn mul_assign(&mut self, rhs: isize)

Performs the *= operation. Read more
source§

impl MulAssign<u128> for AnyNumeric

source§

fn mul_assign(&mut self, rhs: u128)

Performs the *= operation. Read more
source§

impl MulAssign<u16> for AnyNumeric

source§

fn mul_assign(&mut self, rhs: u16)

Performs the *= operation. Read more
source§

impl MulAssign<u32> for AnyNumeric

source§

fn mul_assign(&mut self, rhs: u32)

Performs the *= operation. Read more
source§

impl MulAssign<u64> for AnyNumeric

source§

fn mul_assign(&mut self, rhs: u64)

Performs the *= operation. Read more
source§

impl MulAssign<u8> for AnyNumeric

source§

fn mul_assign(&mut self, rhs: u8)

Performs the *= operation. Read more
source§

impl MulAssign<usize> for AnyNumeric

source§

fn mul_assign(&mut self, rhs: usize)

Performs the *= operation. Read more
source§

impl MulAssign for AnyNumeric

source§

fn mul_assign(&mut self, rhs: AnyNumeric)

Performs the *= operation. Read more
source§

impl Neg for AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Ord for AnyNumeric

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for AnyNumeric

source§

fn eq(&self, other: &AnyNumeric) -> bool

Postgres implementation detail: Unlike in Rust, Postgres considers NaN as equal

source§

fn ne(&self, other: &AnyNumeric) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for AnyNumeric

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

Postgres implementation detail: Unlike in Rust, Postgres considers NaN as equal

source§

fn lt(&self, other: &Self) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &Self) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn gt(&self, other: &Self) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
source§

fn ge(&self, other: &Self) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl RangeSubType for AnyNumeric

for numeric/numrange

source§

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

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<AnyNumeric> for f32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<AnyNumeric> for f64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<AnyNumeric> for i128

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<AnyNumeric> for i16

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<AnyNumeric> for i32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<AnyNumeric> for i64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<AnyNumeric> for i8

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<AnyNumeric> for isize

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<AnyNumeric> for u128

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<AnyNumeric> for u16

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<AnyNumeric> for u32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<AnyNumeric> for u64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<AnyNumeric> for u8

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<AnyNumeric> for usize

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
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

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Numeric<Q, T>) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<f32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: f32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<f64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: f64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i128> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i128) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i16> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i8> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i8) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<isize> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: isize) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u128> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u128) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u16> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u8> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u8) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<usize> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: usize) -> Self::Output

Performs the % operation. Read more
source§

impl Rem for AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the % operator.
source§

fn rem(self, rhs: AnyNumeric) -> Self::Output

Performs the % operation. Read more
source§

impl RemAssign<f32> for AnyNumeric

source§

fn rem_assign(&mut self, rhs: f32)

Performs the %= operation. Read more
source§

impl RemAssign<f64> for AnyNumeric

source§

fn rem_assign(&mut self, rhs: f64)

Performs the %= operation. Read more
source§

impl RemAssign<i128> for AnyNumeric

source§

fn rem_assign(&mut self, rhs: i128)

Performs the %= operation. Read more
source§

impl RemAssign<i16> for AnyNumeric

source§

fn rem_assign(&mut self, rhs: i16)

Performs the %= operation. Read more
source§

impl RemAssign<i32> for AnyNumeric

source§

fn rem_assign(&mut self, rhs: i32)

Performs the %= operation. Read more
source§

impl RemAssign<i64> for AnyNumeric

source§

fn rem_assign(&mut self, rhs: i64)

Performs the %= operation. Read more
source§

impl RemAssign<i8> for AnyNumeric

source§

fn rem_assign(&mut self, rhs: i8)

Performs the %= operation. Read more
source§

impl RemAssign<isize> for AnyNumeric

source§

fn rem_assign(&mut self, rhs: isize)

Performs the %= operation. Read more
source§

impl RemAssign<u128> for AnyNumeric

source§

fn rem_assign(&mut self, rhs: u128)

Performs the %= operation. Read more
source§

impl RemAssign<u16> for AnyNumeric

source§

fn rem_assign(&mut self, rhs: u16)

Performs the %= operation. Read more
source§

impl RemAssign<u32> for AnyNumeric

source§

fn rem_assign(&mut self, rhs: u32)

Performs the %= operation. Read more
source§

impl RemAssign<u64> for AnyNumeric

source§

fn rem_assign(&mut self, rhs: u64)

Performs the %= operation. Read more
source§

impl RemAssign<u8> for AnyNumeric

source§

fn rem_assign(&mut self, rhs: u8)

Performs the %= operation. Read more
source§

impl RemAssign<usize> for AnyNumeric

source§

fn rem_assign(&mut self, rhs: usize)

Performs the %= operation. Read more
source§

impl RemAssign for AnyNumeric

source§

fn rem_assign(&mut self, rhs: AnyNumeric)

Performs the %= operation. Read more
source§

impl Serialize for AnyNumeric

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl SqlTranslatable for AnyNumeric

source§

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

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNumeric> for f32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNumeric> for f64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNumeric> for i128

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNumeric> for i16

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNumeric> for i32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNumeric> for i64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNumeric> for i8

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNumeric> for isize

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNumeric> for u128

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNumeric> for u16

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNumeric> for u32

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNumeric> for u64

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNumeric> for u8

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNumeric> for usize

Rust primitive on the left, AnyNumeric on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
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

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Numeric<Q, T>) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<f32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: f32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<f64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: f64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i128> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i128) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i16> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i8> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<isize> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: isize) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u128> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u128) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u16> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u32> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u64> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u8> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<usize> for AnyNumeric

AnyNumeric on the left, rust primitive on the right. Results in an AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: usize) -> Self::Output

Performs the - operation. Read more
source§

impl Sub for AnyNumeric

§

type Output = AnyNumeric

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNumeric) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign<f32> for AnyNumeric

source§

fn sub_assign(&mut self, rhs: f32)

Performs the -= operation. Read more
source§

impl SubAssign<f64> for AnyNumeric

source§

fn sub_assign(&mut self, rhs: f64)

Performs the -= operation. Read more
source§

impl SubAssign<i128> for AnyNumeric

source§

fn sub_assign(&mut self, rhs: i128)

Performs the -= operation. Read more
source§

impl SubAssign<i16> for AnyNumeric

source§

fn sub_assign(&mut self, rhs: i16)

Performs the -= operation. Read more
source§

impl SubAssign<i32> for AnyNumeric

source§

fn sub_assign(&mut self, rhs: i32)

Performs the -= operation. Read more
source§

impl SubAssign<i64> for AnyNumeric

source§

fn sub_assign(&mut self, rhs: i64)

Performs the -= operation. Read more
source§

impl SubAssign<i8> for AnyNumeric

source§

fn sub_assign(&mut self, rhs: i8)

Performs the -= operation. Read more
source§

impl SubAssign<isize> for AnyNumeric

source§

fn sub_assign(&mut self, rhs: isize)

Performs the -= operation. Read more
source§

impl SubAssign<u128> for AnyNumeric

source§

fn sub_assign(&mut self, rhs: u128)

Performs the -= operation. Read more
source§

impl SubAssign<u16> for AnyNumeric

source§

fn sub_assign(&mut self, rhs: u16)

Performs the -= operation. Read more
source§

impl SubAssign<u32> for AnyNumeric

source§

fn sub_assign(&mut self, rhs: u32)

Performs the -= operation. Read more
source§

impl SubAssign<u64> for AnyNumeric

source§

fn sub_assign(&mut self, rhs: u64)

Performs the -= operation. Read more
source§

impl SubAssign<u8> for AnyNumeric

source§

fn sub_assign(&mut self, rhs: u8)

Performs the -= operation. Read more
source§

impl SubAssign<usize> for AnyNumeric

source§

fn sub_assign(&mut self, rhs: usize)

Performs the -= operation. Read more
source§

impl SubAssign for AnyNumeric

source§

fn sub_assign(&mut self, rhs: AnyNumeric)

Performs the -= operation. Read more
source§

impl Sum for AnyNumeric

source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl TryFrom<&CStr> for AnyNumeric

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &CStr) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&str> for AnyNumeric

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &str) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<const P: u32, const S: u32> TryFrom<AnyNumeric> for Numeric<P, S>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AnyNumeric> for f32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AnyNumeric> for f64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AnyNumeric> for i128

Try to convert using the signed equivalent. If that fails, then try using slower String conversion

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AnyNumeric> for i16

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AnyNumeric> for i32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AnyNumeric> for i64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AnyNumeric> for i8

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AnyNumeric> for isize

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AnyNumeric> for u128

Try to convert using the signed equivalent. If that fails, then try using slower String conversion

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AnyNumeric> for u16

Try to convert using the signed equivalent. If that fails, then try using slower String conversion

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AnyNumeric> for u32

Try to convert using the signed equivalent. If that fails, then try using slower String conversion

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AnyNumeric> for u64

Try to convert using the signed equivalent. If that fails, then try using slower String conversion

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AnyNumeric> for u8

Try to convert using the signed equivalent. If that fails, then try using slower String conversion

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AnyNumeric> for usize

Try to convert using the signed equivalent. If that fails, then try using slower String conversion

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyNumeric) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<f32> for AnyNumeric

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: f32) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<f64> for AnyNumeric

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: f64) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Eq for AnyNumeric

Postgres implementation detail: Unlike in Rust, Postgres considers NaN as equal

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<T> Conv for T

source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> FmtForward for T

source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pipe for T
where T: ?Sized,

source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows 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
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows 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
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
source§

impl<T> Tap for T

source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .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
where Self: BorrowMut<B>, B: ?Sized,

Calls .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
where Self: AsRef<R>, R: ?Sized,

Calls .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
where Self: AsMut<R>, R: ?Sized,

Calls .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
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T> TryConv for T

source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithTypeIds for T
where T: 'static + ?Sized,

source§

const ITEM_ID: Lazy<TypeId> = const ITEM_ID: Lazy<TypeId> = Lazy::new(|| TypeId::of::<T>());

source§

const OPTION_ID: Lazy<Option<TypeId>> = const OPTION_ID: Lazy<Option<TypeId>> = Lazy::new(|| None);

source§

const VEC_ID: Lazy<Option<TypeId>> = const VEC_ID: Lazy<Option<TypeId>> = Lazy::new(|| None);

source§

const VEC_OPTION_ID: Lazy<Option<TypeId>> = const VEC_OPTION_ID: Lazy<Option<TypeId>> = Lazy::new(|| None);

source§

const OPTION_VEC_ID: Lazy<Option<TypeId>> = const OPTION_VEC_ID: Lazy<Option<TypeId>> = Lazy::new(|| None);

source§

const OPTION_VEC_OPTION_ID: Lazy<Option<TypeId>> = const OPTION_VEC_OPTION_ID: Lazy<Option<TypeId>> = Lazy::new(|| None);

source§

const ARRAY_ID: Lazy<Option<TypeId>> = const ARRAY_ID: Lazy<Option<TypeId>> = Lazy::new(|| None);

source§

const OPTION_ARRAY_ID: Lazy<Option<TypeId>> = const OPTION_ARRAY_ID: Lazy<Option<TypeId>> = Lazy::new(|| None);

source§

const VARIADICARRAY_ID: Lazy<Option<TypeId>> = const VARIADICARRAY_ID: Lazy<Option<TypeId>> = Lazy::new(|| None);

source§

const OPTION_VARIADICARRAY_ID: Lazy<Option<TypeId>> = const OPTION_VARIADICARRAY_ID: Lazy<Option<TypeId>> = Lazy::new(|| None);

source§

const VARLENA_ID: Lazy<Option<TypeId>> = const VARLENA_ID: Lazy<Option<TypeId>> = Lazy::new(|| None);

source§

const OPTION_VARLENA_ID: Lazy<Option<TypeId>> = const OPTION_VARLENA_ID: Lazy<Option<TypeId>> = Lazy::new(|| None);

source§

fn register_with_refs(map: &mut HashSet<RustSqlMapping>, single_sql: String)
where Self: 'static,

source§

fn register_sized_with_refs( _map: &mut HashSet<RustSqlMapping>, _single_sql: String )
where Self: 'static,

source§

fn register_sized(_map: &mut HashSet<RustSqlMapping>, _single_sql: String)
where Self: 'static,

source§

fn register_varlena_with_refs( _map: &mut HashSet<RustSqlMapping>, _single_sql: String )
where Self: 'static,

source§

fn register_varlena(_map: &mut HashSet<RustSqlMapping>, _single_sql: String)
where Self: 'static,

source§

fn register_array_with_refs( _map: &mut HashSet<RustSqlMapping>, _single_sql: String )
where Self: 'static,

source§

fn register_array(_map: &mut HashSet<RustSqlMapping>, _single_sql: String)
where Self: 'static,

source§

fn register(set: &mut HashSet<RustSqlMapping>, single_sql: String)
where Self: 'static,

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<M> Measure for M
where M: Debug + PartialOrd + Add<Output = M> + Default + Clone,