Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::detail::KeySelectionAccess Struct Reference

Internal bridge keeping selection payload immutable and checked. More...

#include <shortcut.hpp>

Static Public Member Functions

static KeySelection make (std::expected< Shortcut, ShortcutError > &&shortcut, std::initializer_list< KeyAction > actions, ShortcutOptions options)
static const auto & shortcut (const KeySelection &selection) noexcept
static ShortcutActions actions (const KeySelection &selection) noexcept
static ShortcutOptions options (const KeySelection &selection) noexcept

Detailed Description

Internal bridge keeping selection payload immutable and checked.

Member Function Documentation

◆ actions()

ShortcutActions portals::detail::KeySelectionAccess::actions ( const KeySelection & selection)
inlinestaticnoexcept
Parameters
selectionOwning receipt borrowed during registration.
Returns
Validated fixed action set.

◆ make()

KeySelection portals::detail::KeySelectionAccess::make ( std::expected< Shortcut, ShortcutError > && shortcut,
std::initializer_list< KeyAction > actions,
ShortcutOptions options )
static
Parameters
shortcutChecked normalized alternatives transferred within the allocation catch.
actionsBorrowed explicit native phases; invalid values retain their index.
optionsOriginal finite normalization limits.
Returns
Immutable receipt or deferred typed error; receipt transfer cannot allocate.

◆ options()

ShortcutOptions portals::detail::KeySelectionAccess::options ( const KeySelection & selection)
inlinestaticnoexcept
Parameters
selectionOwning receipt borrowed during registration.
Returns
Original finite normalization limits.

◆ shortcut()

const auto & portals::detail::KeySelectionAccess::shortcut ( const KeySelection & selection)
inlinestaticnoexcept
Parameters
selectionOwning receipt borrowed during checked registration.
Returns
Immutable payload or deferred construction failure, borrowed from selection.

The documentation for this struct was generated from the following file: