Rollup merge of #127474 - tesuji:foldable-inline-derefs, r=t-rustdoc
doc: Make block of inline Deref methods foldable After:  Before:  Fix #127470. Current status: - [x] Bug when hovering over title "Methods from ...": The anchor sign $ overlaps with `[-]`: https://github.com/rust-lang/rust/pull/127474#issuecomment-2222930038 => Fixed by https://github.com/rust-lang/rust/pull/127474#issuecomment-2228886292
This commit is contained in:
commit
c90991db17
4 changed files with 63 additions and 4 deletions
|
@ -356,3 +356,13 @@ pub mod scroll_traits {
|
|||
fn this_is_a_method_with_a_long_name_returning_something() -> String;
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Derefer(String);
|
||||
|
||||
impl std::ops::Deref for Derefer {
|
||||
type Target = str;
|
||||
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue