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 63/week @ 2024-07-22 62/week @ 2024-07-29 68/week @ 2024-08-05 88/week @ 2024-08-12 57/week @ 2024-08-19 85/week @ 2024-08-26 59/week @ 2024-09-02 60/week @ 2024-09-09 58/week @ 2024-09-16 94/week @ 2024-09-23 94/week @ 2024-09-30 76/week @ 2024-10-07 124/week @ 2024-10-14 108/week @ 2024-10-21 62/week @ 2024-10-28 78/week @ 2024-11-04

381 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