[−][src]Struct activitystreams::primitives::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]
fn clone(&self) -> XsdNonNegativeFloat
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for XsdNonNegativeFloat
[src]
impl Default for XsdNonNegativeFloat
[src]
fn default() -> XsdNonNegativeFloat
[src]
impl<'de> Deserialize<'de> for XsdNonNegativeFloat
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for XsdNonNegativeFloat
[src]
impl From<XsdNonNegativeFloat> for f64
[src]
fn from(f: XsdNonNegativeFloat) -> Self
[src]
impl FromStr for XsdNonNegativeFloat
[src]
type Err = XsdNonNegativeFloatError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Serialize for XsdNonNegativeFloat
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'_> TryFrom<&'_ mut str> for XsdNonNegativeFloat
[src]
type Error = XsdNonNegativeFloatError
The type returned in the event of a conversion error.
fn try_from(s: &mut str) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ str> for XsdNonNegativeFloat
[src]
type Error = XsdNonNegativeFloatError
The type returned in the event of a conversion error.
fn try_from(s: &str) -> Result<Self, Self::Error>
[src]
impl TryFrom<String> for XsdNonNegativeFloat
[src]
type Error = XsdNonNegativeFloatError
The type returned in the event of a conversion error.
fn try_from(s: String) -> Result<Self, Self::Error>
[src]
impl TryFrom<f64> for XsdNonNegativeFloat
[src]
Auto Trait Implementations
impl RefUnwindSafe for XsdNonNegativeFloat
impl Send for XsdNonNegativeFloat
impl Sync for XsdNonNegativeFloat
impl Unpin for XsdNonNegativeFloat
impl UnwindSafe for XsdNonNegativeFloat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,