diff options
author | Bryant Mairs <bryant@mai.rs> | 2019-01-30 18:18:00 -0800 |
---|---|---|
committer | Bryant Mairs <bryant@mai.rs> | 2019-02-02 13:06:58 -0800 |
commit | 868a85d05dd46af29346302cbc8135619280cd0f (patch) | |
tree | 35bec4aeeabd346d84e347dce2c742b5d806baef /README.md | |
parent | 51a0587b538d6c2b51e0f907ad3a01df897304eb (diff) | |
download | rust-libc-868a85d05dd46af29346302cbc8135619280cd0f.tar.gz |
Implement PartialEq,Eq for all types
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -44,6 +44,15 @@ activate the *align* feature. This requires Rust 1.25 or newer: libc = { version = "0.2", features = ["align"] } ``` +All structs implemented by the libc crate have the `Copy` and `Clone` traits +implemented for them. The additional traits of `PartialEq` and `Eq` can be +enabled with the *extra_traits* feature (requires Rust 1.25 or newer): + +```toml +[dependencies] +libc = { version = "0.2", features = ["extra_traits"] } +``` + ## What is libc? The primary purpose of this crate is to provide all of the definitions necessary |