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 71/week @ 2024-11-15 90/week @ 2024-11-22 100/week @ 2024-11-29 97/week @ 2024-12-06 89/week @ 2024-12-13 27/week @ 2024-12-20 13/week @ 2024-12-27 31/week @ 2025-01-03 70/week @ 2025-01-10 61/week @ 2025-01-17 42/week @ 2025-01-24 47/week @ 2025-01-31 69/week @ 2025-02-07 50/week @ 2025-02-14 64/week @ 2025-02-21 45/week @ 2025-02-28

244 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