ext
extend
cargo install extend
ext

extend

Create extensions for types you don't own with extension traits but without the boilerplate

by David Pedersen

0.3.0 (see all)License:MIT
cargo install extend
Readme

extend

API documentation

Create extensions for types you don't own with extension traits but without the boilerplate.

Example:

use extend::ext;

#[ext]
impl<T: Ord> Vec<T> {
    fn sorted(mut self) -> Self {
        self.sort();
        self
    }
}

fn main() {
    assert_eq!(
        vec![1, 2, 3],
        vec![2, 3, 1].sorted(),
    );
}

GitHub Stars

62

LAST COMMIT

10mos ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
0.3.0
2yrs ago
0.2.1
2yrs ago
0.2.0
2yrs ago
0.1.2
2yrs ago
No alternatives found
No tutorials found
Add a tutorial