Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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”
- Host: GitHub
- URL: https://github.com/lukaskalbertodt/leer
- Owner: LukasKalbertodt
- License: apache-2.0
- Created: 2023-04-16T15:34:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-16T16:03:41.000Z (over 1 year ago)
- Last Synced: 2024-05-02T04:43:21.277Z (7 months ago)
- Topics: abstraction, empty, rust, trait
- Language: Rust
- Homepage: https://docs.rs/leer/
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Types that have a notion of “being empty”
[](https://github.com/LukasKalbertodt/leer/actions/workflows/ci.yml)
[](https://crates.io/crates/leer)
[](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.