Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lukaskalbertodt/leer

A tiny trait to abstract over types that have a notion of “being empty”
https://github.com/lukaskalbertodt/leer

abstraction empty rust trait

Last synced: 4 days ago
JSON representation

A tiny trait to abstract over types that have a notion of “being empty”

Awesome Lists containing this project

README

        

# Types that have a notion of “being empty”

[CI status of main](https://github.com/LukasKalbertodt/leer/actions/workflows/ci.yml)
[Crates.io Version](https://crates.io/crates/leer)
[docs.rs](https://docs.rs/leer)

A tiny trait to abstract over types that have a notion of “being empty” and can create such an empty instance.
Intended to be a foundational crate.
See [the documentation](https://docs.rs/leer) for more information.

```rust
pub trait Empty {
fn empty() -> Self;
}
```


---

## License

Licensed under either of Apache License, Version
2.0
or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in this project by you, as defined in the Apache-2.0 license,
shall be dual licensed as above, without any additional terms or conditions.