Struct oxsdatatypes::Float
source · #[repr(transparent)]pub struct Float { /* private fields */ }
Expand description
Uses internally a f32
.
Beware: serialization is currently buggy and do not follow the canonical mapping yet.
Implementations§
source§impl Float
impl Float
pub fn from_be_bytes(bytes: [u8; 4]) -> Self
pub fn to_be_bytes(self) -> [u8; 4]
pub fn is_naan(self) -> bool
👎Deprecated: Use .is_nan()
pub fn is_nan(self) -> bool
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 Float
impl FromStr for Float
§type Err = ParseFloatError
type Err = ParseFloatError
The associated error which can be returned from parsing.
source§impl PartialEq<Float> for Float
impl PartialEq<Float> for Float
source§impl PartialOrd<Float> for Float
impl PartialOrd<Float> 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 TryFrom<Float> for Decimal
impl TryFrom<Float> for Decimal
§type Error = DecimalOverflowError
type Error = DecimalOverflowError
The type returned in the event of a conversion error.
source§impl TryFrom<Float> for Integer
impl TryFrom<Float> for Integer
§type Error = DecimalOverflowError
type Error = DecimalOverflowError
The type returned in the event of a conversion error.
impl Copy for Float
impl StructuralPartialEq 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