3 releases

Uses old Rust 2015

0.1.2 Apr 29, 2018
0.1.1 Apr 11, 2018
0.1.0 Apr 10, 2018

#4 in #as

Download history 70/week @ 2023-11-27 36/week @ 2023-12-04 58/week @ 2023-12-11 76/week @ 2023-12-18 58/week @ 2023-12-25 29/week @ 2024-01-01 76/week @ 2024-01-08 58/week @ 2024-01-15 40/week @ 2024-01-22 33/week @ 2024-01-29 49/week @ 2024-02-05 66/week @ 2024-02-12 56/week @ 2024-02-19 80/week @ 2024-02-26 84/week @ 2024-03-04 33/week @ 2024-03-11

268 downloads per month
Used in 18 crates (7 directly)

MIT license

7KB
163 lines

rs-cast_trait

cast trait

use cast_trait::Cast;

fn cast<A, B>(a: A) -> B
where A: Cast<B>,
{
	a.cast()
}

assert_eq!(cast::<i32, f32>(10_i32), 10_f32);

No runtime deps