pub struct Fixed(/* private fields */);Expand description
Subtype of Value that represents a fixed-point decimal
Implementations§
Trait Implementations§
Source§impl ArithmeticOperationExt for Fixed
impl ArithmeticOperationExt for Fixed
Source§fn arithmetic_op(
self,
right: Self,
operation: ArithmeticOperation,
) -> Result<Self, Error>
fn arithmetic_op( self, right: Self, operation: ArithmeticOperation, ) -> Result<Self, Error>
Perform an arithmetic operation on two values
If the operation is not supported on the given type,
an
Error::UnsupportedOperation will be returned Read moreSource§impl BooleanOperationExt for Fixed
impl BooleanOperationExt for Fixed
Source§fn boolean_op(
self,
right: Self,
operation: BooleanOperation,
) -> Result<Value, Error>
fn boolean_op( self, right: Self, operation: BooleanOperation, ) -> Result<Value, Error>
Perform a boolean operation on two values
If the operation is not supported on the given type,
an
Error::UnsupportedOperation will be returned Read moreSource§impl<'de> Deserialize<'de> for Fixed
impl<'de> Deserialize<'de> for Fixed
Source§fn 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
Source§impl From<Fixed> for CurrencyInner
impl From<Fixed> for CurrencyInner
Source§impl Ord for Fixed
impl Ord for Fixed
Source§impl PartialOrd for Fixed
impl PartialOrd for Fixed
Source§impl ValueTrait for Fixed
impl ValueTrait for Fixed
Source§fn new(inner: FixedInner) -> Self
fn new(inner: FixedInner) -> Self
Creates a new value from the given inner value
Source§fn inner(&self) -> &FixedInner
fn inner(&self) -> &FixedInner
Returns a reference to the inner value
Source§fn inner_mut(&mut self) -> &mut FixedInner
fn inner_mut(&mut self) -> &mut FixedInner
Returns a mutable reference to the inner value
Source§fn into_inner(self) -> FixedInner
fn into_inner(self) -> FixedInner
Consumes the value and returns the inner value
impl Eq for Fixed
impl StructuralPartialEq for Fixed
Auto Trait Implementations§
impl Freeze for Fixed
impl RefUnwindSafe for Fixed
impl Send for Fixed
impl Sync for Fixed
impl Unpin for Fixed
impl UnwindSafe for Fixed
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more