Docs: links to DockSizes::stepped and SpecSource::permissions; MemoProps link target

This commit is contained in:
aiongg
2026-11-20 19:01:19 +00:00
parent c8b506997e
commit 0120d452f0
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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`).
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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<P>(&self, column: &Column<P>, spec: &dyn Fn(&P) -> PanelSpec) -> f32 {
if let Some((grid, steps)) = self.stepped(column, spec) {
return grid.width(steps);
+1 -1
View File
@@ -100,7 +100,7 @@ impl<P> Outcome for DockAreaOutput<P> {
/// 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`.