Create extensions for types you don't own with [extension traits] but without the boilerplate.
Example:
```rust use extend::ext;
impl
fn main() { assert_eq!( vec![1, 2, 3], vec![2, 3, 1].sorted(), ); } ```
Under the hood it generates a trait with methods in your impl
and implements those for the
type you specify. The code shown above expands roughly to:
```rust
trait VecExt
impl
You can configure:
#[ext(pub)]
. This
must be the first argument to the attribute#[ext(name = MyExt)]
.#[ext(sealed = false)]
. The
default is true
.More examples:
```rust use extend::ext;
impl
impl i32 { fn double(self) -> i32 { self * 2 } }
impl
License: MIT