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
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
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>
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 moreimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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