Struct bson::Decimal128
source · [−]pub struct Decimal128 { /* private fields */ }
Expand description
Struct representing a BSON Decimal128 type.
Currently, this type can only be used to round-trip through BSON. See RUST-36 to track the progress towards a complete implementation.
Implementations
Trait Implementations
sourceimpl Clone for Decimal128
impl Clone for Decimal128
sourcefn clone(&self) -> Decimal128
fn clone(&self) -> Decimal128
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Decimal128
impl Debug for Decimal128
sourceimpl<'de> Deserialize<'de> for Decimal128
impl<'de> Deserialize<'de> for Decimal128
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for Decimal128
impl Display for Decimal128
sourceimpl From<Decimal128> for Bson
impl From<Decimal128> for Bson
sourcefn from(d: Decimal128) -> Self
fn from(d: Decimal128) -> Self
Converts to this type from the input type.
sourceimpl From<Decimal128> for RawBson
impl From<Decimal128> for RawBson
sourcefn from(d: Decimal128) -> Self
fn from(d: Decimal128) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<Decimal128> for RawBsonRef<'a>
impl<'a> From<Decimal128> for RawBsonRef<'a>
sourcefn from(d: Decimal128) -> Self
fn from(d: Decimal128) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<Decimal128> for Decimal128
impl PartialEq<Decimal128> for Decimal128
sourcefn eq(&self, other: &Decimal128) -> bool
fn eq(&self, other: &Decimal128) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Decimal128) -> bool
fn ne(&self, other: &Decimal128) -> bool
This method tests for !=
.
sourceimpl Serialize for Decimal128
impl Serialize for Decimal128
impl Copy for Decimal128
impl StructuralPartialEq for Decimal128
Auto Trait Implementations
impl RefUnwindSafe for Decimal128
impl Send for Decimal128
impl Sync for Decimal128
impl Unpin for Decimal128
impl UnwindSafe for Decimal128
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