I've found a somewhat strange element in generated docs. Of course this is not something critical, but it looks a bit confusing.
First, here's the definition of Cow
in source code:
pub enum Cow<'a, B: ?Sized + 'a>
where B: ToOwned
{
// ....
}
We can see three bounds on B
, two - in the generic parameters list, one - in where
clause.
Now, how it looks like in docs:
pub enum Cow<'a, B>
where
B: 'a + ToOwned + 'a + ?Sized,
{
// ....
}
The most confusing thing here is the duplicated lifetime bound - I can't really understand where it is coming from. Anyway, even with the duplication aside, is this difference intentional?