diff --git a/src/lib.rs b/src/lib.rs index 6c88499..1da9dcc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -86,7 +86,10 @@ impl Iterator for DecBy { /// A subtrait of [`RangeBounds`](core::ops::RangeBounds) where `T` is `Copy + Default + Step` /// that turns implementers of it into an instance of [`IncBy`][crate::IncBy] when -/// [`inc_by`](crate::IntoIncBy::inc_by) is called. +/// [`inc_by`](crate::IntoIncBy::inc_by) is called. Currently, the blanket implementation of this +/// trait exported from the crate for `RangeBounds` is the only possible useful implementation, but +/// it was decided not to make it a `Sealed` trait in case additional methods are added in the +/// future that would be implementable by end-user code in a meaningfully varied way. pub trait IntoIncBy: RangeBounds { /// Functionally equivalent to what [`step_by`](core::iter::Iterator::step_by) does when it is /// called through a primitive range, but written specifically with primitive ranges in mind such @@ -110,7 +113,10 @@ pub trait IntoIncBy: RangeBounds { /// A subtrait of [`RangeBounds`](core::ops::RangeBounds) where `T` is `Copy + Default + Step` /// that turns implementers of it into an instance of [`DecBy`][crate::DecBy] when -/// [`dec_by`](crate::IntoDecBy::dec_by) is called. +/// [`dec_by`](crate::IntoDecBy::dec_by) is called. Currently, the blanket implementation of this +/// trait exported from the crate for `RangeBounds` is the only possible useful implementation, but +/// it was decided not to make it a `Sealed` trait in case additional methods are added in the +/// future that would be implementable by end-user code in a meaningfully varied way. pub trait IntoDecBy: RangeBounds { /// Functionally equivalent to what [`step_by`](core::iter::Iterator::step_by) does when it is /// called through a primitive range, but specifically in reverse and operating directly on