Skip to main content

Crate cranpose_core

Crate cranpose_core 

Source
Expand description

Core runtime pieces for the Cranpose experiment.

Re-exports§

pub extern crate self as cranpose_core;
pub use owned::Owned;
pub use platform::Clock;
pub use platform::RuntimeScheduler;
pub use slot_table::SlotTable;
pub use slot_table::SlotTableDebugStats;
pub use slot_table::SlotValueTypeDebugStat;
pub use subcompose::ContentTypeReusePolicy;
pub use subcompose::DefaultSlotReusePolicy;
pub use subcompose::SlotId;
pub use subcompose::SlotReusePolicy;
pub use subcompose::SubcomposeState;
pub use composer_context::with_composer as with_current_composer;

Modules§

collections
composer_context
hash
owned
platform
Platform abstraction traits for Compose runtime services.
runtime
slot_table
Slot table implementation with a single logical gap buffer and explicit hidden entries.
snapshot_double_index_heap
snapshot_id_set
snapshot_pinning
snapshot_state_observer
snapshot_v2
Snapshot system for managing isolated state changes.
subcompose
State tracking for measure-time subcomposition.

Macros§

DisposableEffect
LaunchedEffect
LaunchedEffectAsync
clone_captures

Structs§

AnchorId
Stable identifier for a slot in the slot table.
ApplierGuard
CallbackHolder
CallbackHolder1
CallbackHolder1 keeps the latest single-argument callback closure alive across recompositions. It mirrors CallbackHolder but supports callbacks that receive one argument.
CancelToken
Cooperative cancellation token passed into background LaunchedEffect work.
Composer
Composition
CompositionLocal
CompositionPassDebugStats
ConcreteApplierHost
DisposableEffectResult
DisposableEffectScope
GroupId
Opaque handle to a group in the slot storage.
LaunchedEffectScope
MemoryApplier
MemoryApplierDebugStats
MutableState
Cheap copyable mutable view of a state cell.
OwnedMutableState
Owning state handle for reclaimable state cells.
ParamSlot
ParamSlot holds function/closure parameters by ownership (no PartialEq/Clone required). Used by the #[composable] macro to store Fn-like parameters in the slot table.
ParamState
ProvidedValue
RecomposeOptions
RecomposeScope
RecomposeScopeRegistryDebugStats
RecycledNode
ReturnSlot
SlotsHost
SnapshotStateList
SnapshotStateMap
StartScopedGroup
Result of starting a scoped group.
State
Cheap copyable read-only view of a state cell.
StaticCompositionLocal
A StaticCompositionLocal is a CompositionLocal that is optimized for values that are unlikely to change. Unlike CompositionLocal, reads of a StaticCompositionLocal are not tracked by the recomposition system, which means:
ValueSlotHandle

Enums§

NodeError
Phase

Constants§

ROOT_RENDER_REPLAY_LIMIT
Upper bound on chained root-render replays and scope-recomposition rounds.

Traits§

Applier
ApplierHost
Node

Functions§

CompositionLocalProvider
SideEffect
__disposable_effect_impl
__launched_effect_async_impl
__launched_effect_impl
bubble_layout_dirty
Unified API for bubbling layout dirty flags from a node to the root (Applier context).
bubble_layout_dirty_in_composer
Unified API for bubbling layout dirty flags from a node to the root (Composer context).
bubble_measure_dirty
Unified API for bubbling measure dirty flags from a node to the root (Applier context).
bubble_measure_dirty_in_composer
Unified API for bubbling measure dirty flags from a node to the root during composition.
bubble_semantics_dirty
Unified API for bubbling semantics dirty flags from a node to the root (Applier context).
bubble_semantics_dirty_in_composer
Unified API for bubbling semantics dirty flags from a node to the root (Composer context).
compositionLocalOf
compositionLocalOfWithPolicy
derivedStateOf
dispatch_ui_event
Dispatches a UI event in a proper snapshot context.
enter_event_handler
Marks the start of an event handler context. Call this at the start of keyboard/mouse/touch event handling. Use run_in_mutable_snapshot or dispatch_ui_event inside to ensure proper snapshot handling.
exit_event_handler
Marks the end of an event handler context.
in_applied_snapshot
Returns true if currently in an applied snapshot context.
in_event_handler
Returns true if currently in an event handler context.
location_key
mutableStateList
mutableStateListOf
mutableStateMap
mutableStateMapOf
mutableStateOf
Creates a new MutableState initialized with the given value.
ownedMutableStateOf
pop_parent
push_parent
queue_semantics_invalidation
Schedules semantics bubbling for a node using the active composer if present.
remember
rememberUpdatedState
Returns a MutableState that always holds the latest value.
run_in_mutable_snapshot
Runs the provided closure inside a mutable snapshot and applies the result.
staticCompositionLocalOf
try_mutableStateOf
Like mutableStateOf but returns None if no runtime is available.
useState
A composable hook that creates and remembers a MutableState.
withCurrentComposer
withKey
with_key
with_node_mut

Type Aliases§

Key
NodeId