Struct oxsdatatypes::Double
source · #[repr(transparent)]pub struct Double { /* private fields */ }
Expand description
Uses internally a f64
.
Beware: serialization is currently buggy and do not follow the canonical mapping yet.
Implementations§
source§impl Double
impl Double
pub fn from_be_bytes(bytes: [u8; 8]) -> Self
pub fn to_be_bytes(self) -> [u8; 8]
pub fn is_nan(self) -> bool
pub fn is_naan(self) -> bool
👎Deprecated: Use .is_nan()
pub fn is_finite(self) -> bool
sourcepub fn is_identical_with(&self, other: &Self) -> bool
pub fn is_identical_with(&self, other: &Self) -> bool
Checks if the two values are identical.
pub const MIN: Self = _
pub const MAX: Self = _
pub const INFINITY: Self = _
pub const NEG_INFINITY: Self = _
pub const NAN: Self = _
Trait Implementations§
source§impl FromStr for Double
impl FromStr for Double
§type Err = ParseFloatError
type Err = ParseFloatError
The associated error which can be returned from parsing.
source§impl PartialEq<Double> for Double
impl PartialEq<Double> for Double
source§impl PartialOrd<Double> for Double
impl PartialOrd<Double> for Double
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 TryFrom<Double> for Decimal
impl TryFrom<Double> for Decimal
§type Error = DecimalOverflowError
type Error = DecimalOverflowError
The type returned in the event of a conversion error.
source§impl TryFrom<Double> for Integer
impl TryFrom<Double> for Integer
§type Error = DecimalOverflowError
type Error = DecimalOverflowError
The type returned in the event of a conversion error.
impl Copy for Double
impl StructuralPartialEq for Double
Auto Trait Implementations§
impl RefUnwindSafe for Double
impl Send for Double
impl Sync for Double
impl Unpin for Double
impl UnwindSafe for Double
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