Skip to main content

booking_digits_only

Function booking_digits_only 

pub fn booking_digits_only(text: &str) -> bool
Expand description

Returns whether a non-empty booking field contains only ASCII decimal digits.

§Parameters

§Returns

Returns true when the condition checked by crate::domain::booking_digits_only holds and false otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::domain::booking_digits_only.

§Examples

ⓘ
let _result = pharos_native::runtime::business::booking_digits_only("{}");
  • [crate::domain] for adjacent helpers that share the same runtime surface.