You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use std::ops::Deref;pubstructBase;implBase{pubfnasdf(&self){}}pubstructLevelOne{pubbase:Base,}implDerefforLevelOne{typeTarget = Base;fnderef(&self) -> &Base{&self.base}}implLevelOne{pubfnqwop(&self){}}pubstructLevelTwo{pubbase:LevelOne,}implDerefforLevelTwo{typeTarget = LevelOne;fnderef(&self) -> &LevelOne{&self.base}}implLevelTwo{pubfncustom(){}}
In this example, LevelTwo derefs to LevelOne, which derefs to Base. However in the docs, only the methods from LevelOne are shown. We should recursively look for Deref impls on items we're collecting impls for via Deref.
The text was updated successfully, but these errors were encountered:
Just ran into this as well - a bit annoying, especially if Deref is used aggressively through the codebase, e.g. if there are multiple newtype layers like in the example above (which wouldn't be so uncommon). Are there any plans for this to be fixed?
In this example,
LevelTwo
derefs toLevelOne
, which derefs toBase
. However in the docs, only the methods fromLevelOne
are shown. We should recursively look for Deref impls on items we're collecting impls for via Deref.The text was updated successfully, but these errors were encountered: