#information #empty #traits #notion #tiny #abstract #leer

macro leer-macros

Helper crate for leer. Please see the docs of leer for more information. Do not use this crate directly, API stability is not guaranteed!

1 unstable release

0.0.1 Apr 16, 2023

#15 in #notion

36 downloads per month
Used in 2 crates (via leer)

MIT/Apache

4KB
56 lines

Types that have a notion of “being empty”

CI status of main Crates.io Version docs.rs

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 for more information.

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.

Dependencies

~1.5MB
~33K SLoC