pub fn validate_da(text: &[u8]) -> TextValidationOutcome {
    if text.iter().cloned().all(|c| c >= b'0' && c <= b'9') {
        TextValidationOutcome::Ok
    } else {
        TextValidationOutcome::NotOk
    }
}
/// Check whether the given byte slice contains only valid characters for a
/// Date value representation.
Check whether the given byte slice contains only valid characters for a
Date value representation.
Check whether the given byte slice contains only valid characters for a Date value representation .
pub fn validate_da(text: &[u8]) -> TextValidationOutcome {
    if text.iter().cloned().all(|c| c >= b'0' && c <= b'9') {
        TextValidationOutcome::Ok
    } else {
        TextValidationOutcome::NotOk
    }
}
pub fn validate_da ( text : & [ u8 ] ) -> TextValidationOutcome { if text . iter ( ) . cloned ( ) . all ( | c | c >= b'0' && c <= b'9' ) { TextValidationOutcome :: Ok } else { TextValidationOutcome :: NotOk } }
Check whether the given byte slice contains only valid characters for a
Date value representation.
Check whether the given byte slice contains only valid characters for a Date value representation .
text
&[u8]
text
&[u8]