has_impl

Crates.iohas_impl
lib.rshas_impl
version0.1.0
sourcesrc
created_at2020-06-04 18:37:14.221951
updated_at2020-06-04 18:37:14.221951
descriptionCheck if trait is implemented for type in compile time
homepage
repositoryhttps://github.com/Frago9876543210/has_impl
max_upload_size
id250108
size4,092
Frago9876543210 (Frago9876543210)

documentation

https://docs.rs/has_impl

README

has_impl

Build Status Latest Version Documentation

Check if trait is implemented for type at compile time

Example

use has_impl::*;

trait Foo {}

impl Foo for i32 {}

fn main() {
	assert_eq!(has_impl!(i32: Foo), true);
}

Installing

[dependencies]
has_impl = "0.1"
Commit count: 1

cargo fmt