Closed
Description
The Methods from Deref<Target=...>
will not appear in the documentation if Deref
's Target
is a type
alias.
This works:
pub struct MyVeryLong<AndComplicated<Type>>;
pub type Foo = MyVeryLong<AndComplicated<Type>>;
pub struct Bar;
impl Deref for Bar {
type Target = MyVeryLong<AndComplicated<Type>>;
fn deref(&self) -> &Foo { ... }
}
This doesn't:
pub struct MyVeryLong<AndComplicated<Type>>;
pub type Foo = MyVeryLong<AndComplicated<Type>>;
pub struct Bar;
impl Deref for Bar {
type Target = Foo;
fn deref(&self) -> &Foo { ... }
}