GitXplorerGitXplorer
K

extension-trait

public
9 stars
1 forks
6 issues

Commits

List of commits on branch master.
Unverified
12d6c74bd265b0fb015eb99b82433b4d6a082a87

Release extension-trait 1.0.2

KKamilaBorowska committed 2 years ago
Unverified
f6dd42ba1f4070264edbeb308432d89514e7f195

Migrate to Edition 2021

KKamilaBorowska committed 2 years ago
Unverified
6dc8d6cfdeec68212cc5f75c69d1f8c798e07881

Mark crate as deprecated

KKamilaBorowska committed 2 years ago
Unverified
cdfa80d4ed798ca2f2686f8fcac91a8f00533e6e

Bump syn to 2.0.3

KKamilaBorowska committed 2 years ago
Unverified
7030a0554858cedb1dcfb8d90cd38a4d467df476

Release extension-trait 1.0.1

KKamilaBorowska committed 3 years ago
Unverified
b88b61f59aa2b5b50a728abc368740c6e0e34cc7

Update license identifier to use OR syntax

KKamilaBorowska committed 3 years ago

README

The README file for this repository.

extension-trait

A macro to declare extension traits - a trait that is created to add methods to an external type.

Example

#[macro_use]
extern crate extension_trait;

#[extension_trait]
pub impl DoubleExt for str {
   fn double(&self) -> String {
       self.repeat(2)
   }
}

fn main() {
    assert_eq!("Hello".double(), "HelloHello");
}