[][src]Struct cdrs::types::decimal::Decimal

pub struct Decimal {
    pub unscaled: i64,
    pub scale: u32,
}

Cassandra Decimal type

Fields

unscaled: i64scale: u32

Methods

impl Decimal[src]

pub fn new(unscaled: i64, scale: u32) -> Self[src]

pub fn as_plain(&self) -> f64[src]

Method that returns plain f64 value.

Trait Implementations

impl Clone for Decimal[src]

impl Debug for Decimal[src]

impl From<f32> for Decimal[src]

impl From<f64> for Decimal[src]

impl From<i16> for Decimal[src]

impl From<i32> for Decimal[src]

impl From<i64> for Decimal[src]

impl From<i8> for Decimal[src]

impl From<u16> for Decimal[src]

impl From<u8> for Decimal[src]

impl FromCDRS for Decimal[src]

impl FromCDRSByName for Decimal[src]

impl Into<Bytes> for Decimal[src]

impl IntoBytes for Decimal[src]

impl IntoRustByIndex<Decimal> for Row[src]

impl IntoRustByIndex<Decimal> for Tuple[src]

impl IntoRustByName<Decimal> for Row[src]

impl IntoRustByName<Decimal> for UDT[src]

impl PartialEq<Decimal> for Decimal[src]

impl StructuralPartialEq for Decimal[src]

Auto Trait Implementations

impl RefUnwindSafe for Decimal

impl Send for Decimal

impl Sync for Decimal

impl Unpin for Decimal

impl UnwindSafe for Decimal

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.