gpui: Fix intra rustdoc links (#37320)
The only warnings remaining are links to private modules/items, but I lack knowledge to work out if the referenced modules/items should be made public, or if the links should be rewritten into exposed traits/items. Links to associated items such as trait implementations have to be written using full markdown format such as: ... [[ `App::update_global` ]](( BorrowAppContext::update_global )) This is due to https://github.com/rust-lang/rust/issues/74563 which sadly prohibits fully-qualified syntax: ... [[ `<App as BorrowAppContext>::update_global` ]] Release Notes: - N/A Probably related to https://github.com/zed-industries/zed/pull/37072
This commit is contained in:
@@ -533,7 +533,7 @@ impl Interactivity {
|
||||
}
|
||||
|
||||
/// Use the given callback to construct a new tooltip view when the mouse hovers over this element.
|
||||
/// The imperative API equivalent to [`InteractiveElement::tooltip`]
|
||||
/// The imperative API equivalent to [`StatefulInteractiveElement::tooltip`]
|
||||
pub fn tooltip(&mut self, build_tooltip: impl Fn(&mut Window, &mut App) -> AnyView + 'static)
|
||||
where
|
||||
Self: Sized,
|
||||
@@ -550,7 +550,7 @@ impl Interactivity {
|
||||
|
||||
/// Use the given callback to construct a new tooltip view when the mouse hovers over this element.
|
||||
/// The tooltip itself is also hoverable and won't disappear when the user moves the mouse into
|
||||
/// the tooltip. The imperative API equivalent to [`InteractiveElement::hoverable_tooltip`]
|
||||
/// the tooltip. The imperative API equivalent to [`StatefulInteractiveElement::hoverable_tooltip`]
|
||||
pub fn hoverable_tooltip(
|
||||
&mut self,
|
||||
build_tooltip: impl Fn(&mut Window, &mut App) -> AnyView + 'static,
|
||||
@@ -676,7 +676,7 @@ pub trait InteractiveElement: Sized {
|
||||
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
/// Set a key that can be used to look up this element's bounds
|
||||
/// in the [`VisualTestContext::debug_bounds`] map
|
||||
/// in the [`crate::VisualTestContext::debug_bounds`] map
|
||||
/// This is a noop in release builds
|
||||
fn debug_selector(mut self, f: impl FnOnce() -> String) -> Self {
|
||||
self.interactivity().debug_selector = Some(f());
|
||||
@@ -685,7 +685,7 @@ pub trait InteractiveElement: Sized {
|
||||
|
||||
#[cfg(not(any(test, feature = "test-support")))]
|
||||
/// Set a key that can be used to look up this element's bounds
|
||||
/// in the [`VisualTestContext::debug_bounds`] map
|
||||
/// in the [`crate::VisualTestContext::debug_bounds`] map
|
||||
/// This is a noop in release builds
|
||||
#[inline]
|
||||
fn debug_selector(self, _: impl FnOnce() -> String) -> Self {
|
||||
@@ -1087,7 +1087,7 @@ pub trait StatefulInteractiveElement: InteractiveElement {
|
||||
|
||||
/// On drag initiation, this callback will be used to create a new view to render the dragged value for a
|
||||
/// drag and drop operation. This API should also be used as the equivalent of 'on drag start' with
|
||||
/// the [`Self::on_drag_move`] API.
|
||||
/// the [`InteractiveElement::on_drag_move`] API.
|
||||
/// The callback also has access to the offset of triggering click from the origin of parent element.
|
||||
/// The fluent API equivalent to [`Interactivity::on_drag`]
|
||||
///
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
//! In order to minimize re-renders, this element's state is stored intrusively
|
||||
//! on your own views, so that your code can coordinate directly with the list element's cached state.
|
||||
//!
|
||||
//! If all of your elements are the same height, see [`UniformList`] for a simpler API
|
||||
//! If all of your elements are the same height, see [`crate::UniformList`] for a simpler API
|
||||
|
||||
use crate::{
|
||||
AnyElement, App, AvailableSpace, Bounds, ContentMask, DispatchPhase, Edges, Element, EntityId,
|
||||
@@ -235,7 +235,7 @@ impl ListState {
|
||||
}
|
||||
|
||||
/// Register with the list state that the items in `old_range` have been replaced
|
||||
/// by new items. As opposed to [`splice`], this method allows an iterator of optional focus handles
|
||||
/// by new items. As opposed to [`Self::splice`], this method allows an iterator of optional focus handles
|
||||
/// to be supplied to properly integrate with items in the list that can be focused. If a focused item
|
||||
/// is scrolled out of view, the list will continue to render it to allow keyboard interaction.
|
||||
pub fn splice_focusable(
|
||||
|
||||
Reference in New Issue
Block a user