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 75/week @ 2024-03-11 84/week @ 2024-03-18 122/week @ 2024-03-25 175/week @ 2024-04-01 69/week @ 2024-04-08 168/week @ 2024-04-15 118/week @ 2024-04-22 80/week @ 2024-04-29 87/week @ 2024-05-06 88/week @ 2024-05-13 95/week @ 2024-05-20 75/week @ 2024-05-27 64/week @ 2024-06-03 66/week @ 2024-06-10 71/week @ 2024-06-17 89/week @ 2024-06-24

296 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