Hi,
I was checking some documentation of Rust STD and I noticed that traits bound for associated types are not always documented. For example IntoIterator
:
pub trait IntoIterator {
type Item;
type IntoIter: Iterator;
fn into_iter(self) -> Self::IntoIter;
}
It is not showing that type of IntoIter
is actually bounded to be Iterator<Item = Self::Item>
.
I was wondering why it is not documented and I think in some case could be misleading.
If I am not wrong cargo doc
should by default (I made a quick check) document traits bound for associated types.
What do you think?
Thank you