pub struct FloatValue { /* private fields */ }
Implementations§
source§impl FloatValue
impl FloatValue
pub fn set_alias(&mut self, alias: Option<Cow<'static, str>>)
pub fn take_alias(&mut self) -> Option<Cow<'static, str>>
pub fn init_common_styles(&mut self, common_styles: CommonStyles)
pub fn issue_tag(&self) -> bool
pub fn set_issue_tag(&mut self, val: bool)
pub fn sign(&self) -> Option<Sign>
pub fn promote(&mut self) -> &FloatValue
pub fn is_nan(&self) -> bool
pub fn is_negative(&self) -> bool
pub fn is_infinite(&self) -> bool
pub fn format_as_float(&self) -> Option<String>
Trait Implementations§
source§impl Clone for FloatValue
impl Clone for FloatValue
source§fn clone(&self) -> FloatValue
fn clone(&self) -> FloatValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FloatValue
impl Debug for FloatValue
source§impl From<FloatValue> for TaggedValue
impl From<FloatValue> for TaggedValue
source§fn from(value: FloatValue) -> Self
fn from(value: FloatValue) -> Self
Converts to this type from the input type.
source§impl From<GenericFraction<BigUint>> for FloatValue
impl From<GenericFraction<BigUint>> for FloatValue
source§fn from(f: BigFraction) -> FloatValue
fn from(f: BigFraction) -> FloatValue
Converts to this type from the input type.
source§impl From<GenericFraction<u64>> for FloatValue
impl From<GenericFraction<u64>> for FloatValue
source§fn from(f: Fraction) -> FloatValue
fn from(f: Fraction) -> FloatValue
Converts to this type from the input type.
source§impl From<f32> for FloatValuewhere
Fraction: From<f32>,
BigFraction: From<f32>,
impl From<f32> for FloatValuewhere
Fraction: From<f32>,
BigFraction: From<f32>,
source§fn from(val: f32) -> FloatValue
fn from(val: f32) -> FloatValue
Converts to this type from the input type.
source§impl From<f64> for FloatValuewhere
Fraction: From<f64>,
BigFraction: From<f64>,
impl From<f64> for FloatValuewhere
Fraction: From<f64>,
BigFraction: From<f64>,
source§fn from(val: f64) -> FloatValue
fn from(val: f64) -> FloatValue
Converts to this type from the input type.
source§impl Into<GenericFraction<BigUint>> for FloatValue
impl Into<GenericFraction<BigUint>> for FloatValue
source§fn into(self) -> BigFraction
fn into(self) -> BigFraction
Converts this type into the (usually inferred) input type.
source§impl<'a> Into<Result<&'a GenericFraction<BigUint>, &'a FloatValue>> for &'a FloatValue
impl<'a> Into<Result<&'a GenericFraction<BigUint>, &'a FloatValue>> for &'a FloatValue
source§fn into(self) -> Result<&'a BigFraction, &'a FloatValue>
fn into(self) -> Result<&'a BigFraction, &'a FloatValue>
Converts this type into the (usually inferred) input type.
source§impl<'a> Into<Result<&'a GenericFraction<u64>, &'a FloatValue>> for &'a FloatValue
impl<'a> Into<Result<&'a GenericFraction<u64>, &'a FloatValue>> for &'a FloatValue
source§impl Into<Result<GenericFraction<u64>, FloatValue>> for FloatValue
impl Into<Result<GenericFraction<u64>, FloatValue>> for FloatValue
source§impl Tagged for FloatValue
impl Tagged for FloatValue
source§impl ToPrimitive for FloatValue
impl ToPrimitive for FloatValue
source§fn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
Converts the value of
self
to an i64
. If the value cannot be
represented by an i64
, then None
is returned.source§fn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
Converts the value of
self
to a u64
. If the value cannot be
represented by a u64
, then None
is returned.source§fn to_isize(&self) -> Option<isize>
fn to_isize(&self) -> Option<isize>
Converts the value of
self
to an isize
. If the value cannot be
represented by an isize
, then None
is returned.source§fn to_i8(&self) -> Option<i8>
fn to_i8(&self) -> Option<i8>
Converts the value of
self
to an i8
. If the value cannot be
represented by an i8
, then None
is returned.source§fn to_i16(&self) -> Option<i16>
fn to_i16(&self) -> Option<i16>
Converts the value of
self
to an i16
. If the value cannot be
represented by an i16
, then None
is returned.source§fn to_i32(&self) -> Option<i32>
fn to_i32(&self) -> Option<i32>
Converts the value of
self
to an i32
. If the value cannot be
represented by an i32
, then None
is returned.source§fn to_i128(&self) -> Option<i128>
fn to_i128(&self) -> Option<i128>
Converts the value of
self
to an i128
. If the value cannot be
represented by an i128
(i64
under the default implementation), then
None
is returned. Read moresource§fn to_usize(&self) -> Option<usize>
fn to_usize(&self) -> Option<usize>
Converts the value of
self
to a usize
. If the value cannot be
represented by a usize
, then None
is returned.source§fn to_u8(&self) -> Option<u8>
fn to_u8(&self) -> Option<u8>
Converts the value of
self
to a u8
. If the value cannot be
represented by a u8
, then None
is returned.source§fn to_u16(&self) -> Option<u16>
fn to_u16(&self) -> Option<u16>
Converts the value of
self
to a u16
. If the value cannot be
represented by a u16
, then None
is returned.source§fn to_u32(&self) -> Option<u32>
fn to_u32(&self) -> Option<u32>
Converts the value of
self
to a u32
. If the value cannot be
represented by a u32
, then None
is returned.source§fn to_u128(&self) -> Option<u128>
fn to_u128(&self) -> Option<u128>
Converts the value of
self
to a u128
. If the value cannot be
represented by a u128
(u64
under the default implementation), then
None
is returned. Read more