pub struct Float(/* private fields */);Expand description
Subtype of Value that represents a float
Trait Implementations§
source§impl ArithmeticOperationExt for Float
impl ArithmeticOperationExt for Float
source§fn arithmetic_op(
left: &Self,
right: &Self,
operation: ArithmeticOperation
) -> Result<Self, Error>
fn arithmetic_op( left: &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 Float
impl BooleanOperationExt for Float
source§fn boolean_op(
left: &Self,
right: &Self,
operation: BooleanOperation
) -> Result<Value, Error>
fn boolean_op( left: &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 Float
impl<'de> Deserialize<'de> for Float
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<f64> for Float
impl From<f64> for Float
source§fn from(value: FloatInner) -> Self
fn from(value: FloatInner) -> Self
Converts to this type from the input type.
source§impl Into<f64> for Float
impl Into<f64> for Float
source§fn into(self) -> FloatInner
fn into(self) -> FloatInner
Converts this type into the (usually inferred) input type.
source§impl Ord for Float
impl Ord for Float
source§impl PartialEq for Float
impl PartialEq for Float
source§impl PartialOrd for Float
impl PartialOrd for Float
1.0.0 · source§fn 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 moresource§impl ValueTrait<f64> for Float
impl ValueTrait<f64> for Float
source§fn new(inner: FloatInner) -> Self
fn new(inner: FloatInner) -> Self
Creates a new value from the given inner value
source§fn inner(&self) -> &FloatInner
fn inner(&self) -> &FloatInner
Returns a reference to the inner value
source§fn inner_mut(&mut self) -> &mut FloatInner
fn inner_mut(&mut self) -> &mut FloatInner
Returns a mutable reference to the inner value
impl Eq for Float
Auto Trait Implementations§
impl RefUnwindSafe for Float
impl Send for Float
impl Sync for Float
impl Unpin for Float
impl UnwindSafe for Float
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