4 releases
0.2.0 | Nov 27, 2021 |
---|---|
0.1.2 | Aug 2, 2017 |
0.1.1 | Jul 30, 2017 |
0.1.0 | Oct 2, 2016 |
#9 in #specialization
143 downloads per month
Used in 12 crates
(4 directly)
7KB
debugit
Debug-print any value without trait bounds using specialization (Rust nightly channel). Requires Rust nightly.
Please read the API documentation here
|build_status|_ debugit at crates.io
Recent Changes
- 0.2.0
- Make debugit nightly-only and require unsafe to call due to soundness issues with specialization.
- 0.1.2
- Use version_matches for version checking (compiles faster)
- 0.1.1
- Edit docs
- Fix repository link
License
Dual-licensed to be compatible with the Rust project.
Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.
lib.rs
:
Use debug printlns, without the trait bounds (using specialization to find the right impl anyway).
NOTE: This uses experimental Rust features and is therefore
by itself experimental and unstable, and has all the problems of
feature(specialization)
.
For this reason, unsafe
is required to use this feature unfortunately.