Skip to content

Check if trait is implemented for type in compile time

License

Notifications You must be signed in to change notification settings

Frago9876543210/has_impl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Check if trait is implemented for type in compile time

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages