#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

#43 in No standard library

Download history 17/week @ 2019-03-28 22/week @ 2019-04-04 61/week @ 2019-04-11 76/week @ 2019-04-18 31/week @ 2019-04-25 33/week @ 2019-05-02 59/week @ 2019-05-09 30/week @ 2019-05-16 54/week @ 2019-05-23 15/week @ 2019-05-30 59/week @ 2019-06-06 45/week @ 2019-06-13 35/week @ 2019-06-20 62/week @ 2019-06-27 41/week @ 2019-07-04

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

MIT/Apache

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

~235KB