Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
criterion-stats 0.1.3 - Docs.rs
[go: Go Back, main page]

criterion-stats 0.1.3

Criterion's statistics library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Float trait

use num_traits::float;
use cast::From;

/// This is an extension of `num_traits::float::Float` that adds safe
/// casting and Sync + Send. Once `num_traits` has these features this
/// can be removed.
pub trait Float
    : float::Float
    + From<usize, Output=Self>
    + From<f32, Output=Self>
    + Sync
    + Send
{}

impl Float for f32 {}
impl Float for f64 {}