A quality value, as specified in RFC7231.
Quality values are decimal numbers between 0 and 1 (inclusive) with up to 3 fractional digits of precision.
Creates a quality value from a value between 0 and 1000 inclusive.
This is semantically divided by 1000 to produce a value between 0 and 1.
Panics if the value is greater than 1000.
Returns the quality multiplied by 1000 as an integer.
impl PartialOrd<Quality> for Quality[src]
fn partial_cmp(&self, other: &Quality) -> Option<Ordering>[src]
default fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from
source. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
type Error = Infallible
The type returned in the event of a conversion error.