Expand description
Cassandra Decimal type
Fields
unscaled: BigInt
scale: i32
Implementations
Trait Implementations
sourceimpl FromCdrs for Decimal
impl FromCdrs for Decimal
fn from_cdrs<T>(cdrs_type: T) -> CdrsResult<Option<Self>> where
Self: Sized,
T: AsRustType<Self>,
fn from_cdrs_r<T>(cdrs_type: T) -> CdrsResult<Self> where
Self: Sized,
T: AsRustType<Self>,
sourceimpl FromCdrsByName for Decimal
impl FromCdrsByName for Decimal
fn from_cdrs_by_name<T>(cdrs_type: &T, name: &str) -> CdrsResult<Option<Self>> where
Self: Sized,
T: ByName + IntoRustByName<Self>,
fn from_cdrs_r<T>(cdrs_type: &T, name: &str) -> CdrsResult<Self> where
Self: Sized,
T: ByName + IntoRustByName<Self> + Debug,
sourceimpl IntoRustByIndex<Decimal> for Row
impl IntoRustByIndex<Decimal> for Row
fn get_by_index(&self, index: usize) -> Result<Option<Decimal>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
sourceimpl IntoRustByIndex<Decimal> for Tuple
impl IntoRustByIndex<Decimal> for Tuple
fn get_by_index(&self, index: usize) -> Result<Option<Decimal>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
sourceimpl IntoRustByName<Decimal> for Row
impl IntoRustByName<Decimal> for Row
fn get_by_name(&self, name: &str) -> Result<Option<Decimal>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
sourceimpl IntoRustByName<Decimal> for Udt
impl IntoRustByName<Decimal> for Udt
fn get_by_name(&self, name: &str) -> Result<Option<Decimal>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
sourceimpl Ord for Decimal
impl Ord for Decimal
sourceimpl PartialOrd<Decimal> for Decimal
impl PartialOrd<Decimal> for Decimal
sourcefn partial_cmp(&self, other: &Decimal) -> Option<Ordering>
fn partial_cmp(&self, other: &Decimal) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for Decimal
impl StructuralEq for Decimal
impl StructuralPartialEq for Decimal
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more