#no-std

no-std core_extensions

This crate provides many extensions to core/std library types

10 releases

new 0.1.10 Nov 16, 2019
0.1.9 Nov 8, 2019
0.1.7 Jun 10, 2019
0.1.6 Apr 8, 2019
0.1.2 Sep 25, 2018

#31 in No standard library

Download history 19/week @ 2019-08-08 48/week @ 2019-08-15 61/week @ 2019-08-22 42/week @ 2019-08-29 51/week @ 2019-09-05 32/week @ 2019-09-12 101/week @ 2019-09-19 75/week @ 2019-09-26 23/week @ 2019-10-03 25/week @ 2019-10-10 43/week @ 2019-10-17 147/week @ 2019-10-24 85/week @ 2019-10-31 93/week @ 2019-11-07

274 downloads per month
Used in 11 crates (10 directly)

MIT/Apache

215KB
3.5K SLoC

Build Status

This crate provides many extensions to core/std library types, and provides some new abstractions.

This crate provides:

  • Extension traits for strings/slices/Option/Result/bool.

  • SelfOps:to extend all types with generic operations.

  • Type-level representations of bool and unsafe .

  • Marker traits to encode invariants about types.

  • etc.

no-std support

To use this crate in no_std contexts disable the default-feature.

Supported Rust versions

This crate support Rust back to 1.20, using a build script to automatically enable features from newer versions.

Cargo Features

"std":Enables standard library support.Enabled by default.

"serde_":Enables serde support.Disabled by default.

"typenum":Enables trait impls for typenum types.Disabled by default.

License

core_extensions is licensed under either of

Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

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

Dependencies