Marker traits for primitive types

This crate provides marker traits for primitive types:

Example

Cargo.toml

```toml

...

[dependencies] just_prim = { version = "0.1.0" }

...

[features]

https://doc.rust-lang.org/beta/unstable-book/language-features/marker-trait-attr.html

markertraitattr = ["justprim/markertrait_attr"] ```

src/main.rs

```rust // Uncomment if you want to conditionally use the feature. Remove otherwise. // #![cfgattr(feature = "markertraitattr", feature(markertrait_attr))]

use just_prim::Prim;

trait MyExtensionTraitForPrimTys: Prim { // ... }

fn main() {} ```

Building, running, and testing

Features

With marker_trait_attr Nightly feature, each of the provided traits also has #[marker] attribute which allows more optimal implementation of traits via two or more "overlapping" generic impl blocks. Without #[marker] attribute, the "overlapping" impl blocks would be conflicting.

Similar crates by the author:

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.