Skip to main content

Module number

Module number 

Source
Expand description

Locale-aware numeric editing without model or widget dependencies.

Resolve a NumberLocale, then pass native events to NumberDraft::reduce.

Structs§

NumberDraft
Owns one binding instance’s local draft and latest model display.
NumberLocale
Owns the token vocabulary of one resolved decimal locale.

Enums§

DraftEffect
Describes the only externally observable side effect of a transition.
DraftEvent
Carries synchronous native events or revision-tagged formatting replies.
NormalizedDraft
Distinguishes a numeric prefix from a complete, representable canonical draft.

Functions§

decode_format_reply
Decodes a formatter reply with its Rust-captured instance/revision stamp.
decode_locale_reply
Decodes and validates a locale script reply without substituting defaults.
format_number_script
Builds an eval script that formats concretely validated canonical text.
normalize_draft
Normalizes locale tokens without coercing integer values through floats.
number_locale_script
Builds an eval script that sends a resolved locale or explicit locale failure.
step_number
Steps canonical text to the next zero-anchored multiple without clamping.