We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use std::ops::Deref; pub struct Ref<T>(T); pub struct FooInner; pub struct Foo(Ref<FooInner>); impl Ref<FooInner> { pub fn foo(&self) {} } impl Deref for Foo { type Target = Ref<FooInner>; fn deref(&self) -> &Ref<FooInner> { &self.0 } } pub struct Bar; impl Ref<Bar> { pub fn bar(&self) {} }
Note that bar is visible in the documentation even though it's only implemented for Ref<Bar>.
bar
Ref<Bar>
The text was updated successfully, but these errors were encountered:
Dupe of #24686?
Sorry, something went wrong.
Looks like, thanks
No branches or pull requests
Note that
bar
is visible in the documentation even though it's only implemented forRef<Bar>
.The text was updated successfully, but these errors were encountered: