From 0120d452f0a18f65845db70b210ae7fcd2e13ea3 Mon Sep 17 00:00:00 2001 From: aiongg Date: Fri, 20 Nov 2026 19:01:19 +0000 Subject: [PATCH] Docs: links to DockSizes::stepped and SpecSource::permissions; MemoProps link target --- crates/ui-contract/src/runtime/derived.rs | 2 +- crates/ui-panels/src/docking/dock_column.rs | 2 +- crates/ui-panels/src/docking/targets.rs | 2 +- crates/ui-patterns/src/patterns/dock/area.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ui-contract/src/runtime/derived.rs b/crates/ui-contract/src/runtime/derived.rs index 92d3569a37..d934215a23 100644 --- a/crates/ui-contract/src/runtime/derived.rs +++ b/crates/ui-contract/src/runtime/derived.rs @@ -1,6 +1,6 @@ //! Derived values: data a component computes from its inputs and keeps across passes. [`derived`] keeps one value per //! component id and value type, and builds it again only when its key changes. The key implements -//! [`MemoProps`](crate::contract::MemoProps), so it can only be made of checked inputs (`Tracked` revisions, framework +//! [`MemoProps`], so it can only be made of checked inputs (`Tracked` revisions, framework //! revisions, plain values), and a kept value is never stale while the key compiles. //! //! A value no pass asks for is dropped by the rule memoized views follow for absent entries (`lazy::absent_past_room`). diff --git a/crates/ui-panels/src/docking/dock_column.rs b/crates/ui-panels/src/docking/dock_column.rs index c3fbd8fe4f..918a20a60a 100644 --- a/crates/ui-panels/src/docking/dock_column.rs +++ b/crates/ui-panels/src/docking/dock_column.rs @@ -68,7 +68,7 @@ pub enum ColumnArrow { /// Collapses the column to icons, or expands it. #[default] Collapse, - /// Switches a stepped column ([`stepped`]) between one and two steps. Holds the steps it shows. + /// Switches a stepped column ([`DockSizes::stepped`](super::DockSizes::stepped)) between one and two steps. Holds the steps it shows. Steps(u16), /// Nothing: the column neither collapses nor has steps. It shows no double arrow, and its menu offers no /// collapse. diff --git a/crates/ui-panels/src/docking/targets.rs b/crates/ui-panels/src/docking/targets.rs index 6ddfd9bf2d..b948a8d1df 100644 --- a/crates/ui-panels/src/docking/targets.rs +++ b/crates/ui-panels/src/docking/targets.rs @@ -123,7 +123,7 @@ impl DockSizes { /// The width an expanded column's panels draw at, whether the column is expanded or iconic (its flyout and a /// floated iconic column use it): the stored width kept within the panels' limits, or a stepped column's width - /// at its steps ([`stepped`]). + /// at its steps ([`DockSizes::stepped`](super::DockSizes::stepped)). pub fn expanded_width

(&self, column: &Column

, spec: &dyn Fn(&P) -> PanelSpec) -> f32 { if let Some((grid, steps)) = self.stepped(column, spec) { return grid.width(steps); diff --git a/crates/ui-patterns/src/patterns/dock/area.rs b/crates/ui-patterns/src/patterns/dock/area.rs index 7f1f5ffe86..6f8b6dfc17 100644 --- a/crates/ui-patterns/src/patterns/dock/area.rs +++ b/crates/ui-patterns/src/patterns/dock/area.rs @@ -100,7 +100,7 @@ impl

Outcome for DockAreaOutput

{ /// flyouts; a group is a `DockGroup`; a floating window is a `FloatingGroup` holding one column, shown as a dock's /// column is, whose bar is the window's title row. The host's `DockPanels` supplies the panels. /// - Edits: a divider drag and every [`Action`] of the pass (menu rows, drags, drops) are written to the workspace -/// through its binding, with the panels' [`DockPanels::permissions`] (narrowed when `locked`). The output lists the +/// through its binding, with the panels' [`SpecSource::permissions`](crate::docking::SpecSource::permissions) (narrowed when `locked`). The output lists the /// actions the workspace took, divider sizes and window moves included. A given workspace is not written. /// - Requests: while the pass runs, a body changes the workspace through /// [`request_actions`](crate::docking::request_actions); the output returns those actions unapplied in `requested`.