#no-std

no-std core_extensions

This crate provides many extensions to core/std library types

8 releases

0.1.7 Jun 10, 2019
0.1.6 Apr 8, 2019
0.1.5 Mar 9, 2019
0.1.4 Oct 6, 2018
0.1.2 Sep 25, 2018

#28 in No standard library

Download history 6/week @ 2019-02-23 9/week @ 2019-03-02 24/week @ 2019-03-09 11/week @ 2019-03-16 36/week @ 2019-03-23 7/week @ 2019-03-30 17/week @ 2019-04-06 60/week @ 2019-04-13 94/week @ 2019-04-20 31/week @ 2019-04-27 26/week @ 2019-05-04 55/week @ 2019-05-11 56/week @ 2019-05-18 27/week @ 2019-05-25 21/week @ 2019-06-01

151 downloads per month
Used in 8 crates (6 directly)

MIT/Apache

197KB
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

~210KB