From a336dc813b19232bbcc9265686922657f68d13c0 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Thu, 10 Feb 2022 12:53:16 -0500 Subject: [PATCH] Implement more traits for `Advice` --- src/advice.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/advice.rs b/src/advice.rs index 835cbdb1..d3c54614 100644 --- a/src/advice.rs +++ b/src/advice.rs @@ -5,6 +5,7 @@ use crate::{Mmap, MmapMut}; /// Values supported by [Mmap::advise] and [MmapMut::advise] functions. /// See [madvise()](https://man7.org/linux/man-pages/man2/madvise.2.html) map page. #[repr(i32)] +#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] pub enum Advice { /// **MADV_NORMAL** ///