1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Common traits
//!
//! Currently just a workaround for FromLossy/IntoLossy traits
//!
// TryFrom/TryInto forwarded for convenience
pub use TryFrom;
pub use TryInto;
/// A From trait for conversions which may lose precision
///
/// Note this is just a temporary workaround. Once [RFC2484] is implemented
/// these traits should go away.
///
/// [RFC2484]: https://github.com/rust-lang/rfcs/pull/2484
///
/// An Into trait for conversions which may lose precision
///
/// This is similar to Into, but for FromLossy
///
/// IntoLossy is the inverse of FromLossy
/// All types that provide From provide FromLossy