diff --git a/strum/src/lib.rs b/strum/src/lib.rs index 7fbe5e2..78a7020 100644 --- a/strum/src/lib.rs +++ b/strum/src/lib.rs @@ -30,6 +30,8 @@ // only for documentation purposes pub mod additional_attributes; +use core::iter::FusedIterator; + #[cfg(feature = "phf")] #[doc(hidden)] pub use phf as _private_phf_reexport_for_macro_if_phf_feature; @@ -96,7 +98,7 @@ impl std::error::Error for ParseError { /// generic_iterator::(|color| println!("{:?}", color)); /// ``` pub trait IntoEnumIterator: Sized { - type Iterator: Iterator; + type Iterator: Iterator + Clone + DoubleEndedIterator + ExactSizeIterator + FusedIterator; fn iter() -> Self::Iterator; }