fn expected_dur_like_tokens(from: DateTimeField) -> Result<VecDeque<TimeStrToken>, String> {
    use DateTimeField::*;
    use TimeStrToken::*;

    let all_toks = [
        Num(0, 1), // hour
        Colon,
        Num(0, 1), // minute
        Colon,
        Num(0, 1), // second
        Dot,
        Nanos(0), // Nanos
    ];
    let start = match from {
        Hour => 0,
        Minute => 2,
        Second => 4,
        _ => {
            return Err(format!(
                "expected_dur_like_tokens can only be called with HOUR, MINUTE, SECOND; got {}",
                from
            ))
        }
    };

    Ok(VecDeque::from(all_toks[start..all_toks.len()].to_vec()))
}
/// Get the expected TimeStrTokens to parse SQL Standard time-like
/// DateTimeFields, i.e. HOUR, MINUTE, SECOND. This is used for INTERVAL,
/// TIMESTAMP, and TIME.
///
/// # Errors
/// - If `from` is YEAR, MONTH, or DAY.
Get the expected TimeStrTokens to parse SQL Standard time-like
DateTimeFields, i.e. HOUR, MINUTE, SECOND. This is used for INTERVAL,
TIMESTAMP, and TIME.
Get the expected TimeStrTokens to parse SQL Standard time - like DateTimeFields i . e . HOUR MINUTE SECOND . This is used for INTERVAL TIMESTAMP and TIME .
fn expected_dur_like_tokens(from: DateTimeField) -> Result<VecDeque<TimeStrToken>, String> {
    use DateTimeField::*;
    use TimeStrToken::*;
    let all_toks = [
        Num(0, 1), // hour
        Colon,
        Num(0, 1), // minute
        Colon,
        Num(0, 1), // second
        Dot,
        Nanos(0), // Nanos
    ];
    let start = match from {
        Hour => 0,
        Minute => 2,
        Second => 4,
        _ => {
            return Err(format!(
                "expected_dur_like_tokens can only be called with HOUR, MINUTE, SECOND; got {}",
                from
            ))
        }
    };
    Ok(VecDeque::from(all_toks[start..all_toks.len()].to_vec()))
}
fn expected_dur_like_tokens ( from : DateTimeField ) -> Result < VecDeque < TimeStrToken > , String > { use DateTimeField :: * ; use TimeStrToken :: * ; let all_toks = [ Num ( 0 , 1 ) , // hour Colon , Num ( 0 , 1 ) , // minute Colon , Num ( 0 , 1 ) , // second Dot , Nanos ( 0 ) , // Nanos ] ; let start = match from { Hour => 0 , Minute => 2 , Second => 4 , _ => { return Err ( format ! ( " " from ) ) } } ; Ok ( VecDeque :: from ( all_toks [ start .. all_toks . len ( ) ] . to_vec ( ) ) ) }
Get the expected TimeStrTokens to parse SQL Standard time-like
DateTimeFields, i.e.
Get the expected TimeStrTokens to parse SQL Standard time - like DateTimeFields i . e .
from
DateTimeField
from
DateTimeField
errors
If `from` is YEAR, MONTH, or DAY.
If ` from ` is YEAR MONTH or DAY .