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