[][src]Struct activitystreams::primitives::XsdNonNegativeFloat

pub struct XsdNonNegativeFloat(_);

The type xsd:float represents an IEEE single-precision 32-bit floating-point number.

TODO: handle exponents, infinity, not-a-number

The format of xsd:float values is a mantissa (a number which conforms to the type decimal) followed, optionally, by the character "E" or "e" followed by an exponent. The exponent must be an integer. For example, 3E2 represents 3 times 10 to the 2nd power, or 300. The exponent must be an integer.

In addition, the following values are valid: INF (infinity), -INF (negative infinity), and NaN (Not a Number). INF is considered to be greater than all other values, while -INF is less than all other values. The value NaN cannot be compared to any other values, although it equals itself.

This type also validates that a float is at least 0.0

Trait Implementations

impl AsRef<f64> for XsdNonNegativeFloat[src]

impl Clone for XsdNonNegativeFloat[src]

impl Debug for XsdNonNegativeFloat[src]

impl Default for XsdNonNegativeFloat[src]

impl<'de> Deserialize<'de> for XsdNonNegativeFloat[src]

impl Display for XsdNonNegativeFloat[src]

impl From<XsdNonNegativeFloat> for f64[src]

impl FromStr for XsdNonNegativeFloat[src]

type Err = XsdNonNegativeFloatError

The associated error which can be returned from parsing.

impl Serialize for XsdNonNegativeFloat[src]

impl<'_> TryFrom<&'_ mut str> for XsdNonNegativeFloat[src]

type Error = XsdNonNegativeFloatError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ str> for XsdNonNegativeFloat[src]

type Error = XsdNonNegativeFloatError

The type returned in the event of a conversion error.

impl TryFrom<String> for XsdNonNegativeFloat[src]

type Error = XsdNonNegativeFloatError

The type returned in the event of a conversion error.

impl TryFrom<f64> for XsdNonNegativeFloat[src]

type Error = XsdNonNegativeFloatError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.