Registry / utility / trait-set

trait-set

JSON →
library0.3.0rscratesunverified

Support for trait alias feature on stable Rust.

# Cargo.toml [dependencies] trait-set = "0.3.0"
INSTALL
IMPORT
SIG · TRAIT-SET
T
trait-set
utilityrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

trait_set
✓ use trait_set::trait_set;

Defines a trait alias combining Clone and Debug using the trait_set macro.

use trait_set::trait_set; trait_set! { pub trait MyAlias = Clone + std::fmt::Debug; } fn foo<T: MyAlias>(t: T) { println!("{:?}", t); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
trait-set — cargo add trait-set · libregistry