#no-std

no-std core_extensions

This crate provides many extensions to core/std library types

14 releases

0.1.14 Feb 8, 2020
0.1.13 Dec 3, 2019
0.1.11 Nov 18, 2019
0.1.7 Jun 10, 2019
0.1.2 Sep 25, 2018

#30 in No standard library

Download history 34/week @ 2019-11-09 82/week @ 2019-11-16 125/week @ 2019-11-23 142/week @ 2019-11-30 104/week @ 2019-12-07 8/week @ 2019-12-14 2/week @ 2019-12-21 31/week @ 2019-12-28 13/week @ 2020-01-04 113/week @ 2020-01-11 62/week @ 2020-01-18 6/week @ 2020-01-25 4/week @ 2020-02-01 42/week @ 2020-02-08 95/week @ 2020-02-15

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

MIT/Apache

230KB
4K 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.

"colltraits":Enables trait impls for the collection traits in the collection_traits module.

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