[−][src]Struct cdrs::types::decimal::Decimal
Cassandra Decimal type
Fields
unscaled: i64
scale: 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]
fn from_cdrs<T>(cdrs_type: T) -> CDRSResult<Option<Self>> where
Self: Sized,
T: AsRustType<Self> + Sized,
[src]
Self: Sized,
T: AsRustType<Self> + Sized,
fn from_cdrs_r<T>(cdrs_type: T) -> CDRSResult<Self> where
Self: Sized,
T: AsRustType<Self> + Sized,
[src]
Self: Sized,
T: AsRustType<Self> + Sized,
impl FromCDRSByName for Decimal
[src]
fn from_cdrs_by_name<T>(cdrs_type: &T, name: &str) -> CDRSResult<Option<Self>> where
Self: Sized,
T: ByName + IntoRustByName<Self> + Sized,
[src]
Self: Sized,
T: ByName + IntoRustByName<Self> + Sized,
fn from_cdrs_r<T>(cdrs_type: &T, name: &str) -> CDRSResult<Self> where
Self: Sized,
T: ByName + IntoRustByName<Self> + Sized + Debug,
[src]
Self: Sized,
T: ByName + IntoRustByName<Self> + Sized + Debug,
impl Into<Bytes> for Decimal
[src]
impl IntoBytes for Decimal
[src]
fn into_cbytes(&self) -> Vec<u8>
[src]
impl IntoRustByIndex<Decimal> for Row
[src]
fn get_by_index(&self, index: usize) -> Result<Option<Decimal>>
[src]
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
[src]
impl IntoRustByIndex<Decimal> for Tuple
[src]
fn get_by_index(&self, index: usize) -> Result<Option<Decimal>>
[src]
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
[src]
impl IntoRustByName<Decimal> for Row
[src]
fn get_by_name(&self, name: &str) -> Result<Option<Decimal>>
[src]
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
[src]
impl IntoRustByName<Decimal> for UDT
[src]
fn get_by_name(&self, name: &str) -> Result<Option<Decimal>>
[src]
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,