Skip to main content

TimeExpressionParser

Trait TimeExpressionParser 

Source
pub trait TimeExpressionParser: Send + Sync {
    // Required methods
    fn strict_mode(&self) -> bool;
    fn primary_prefix(&self) -> &str;
    fn following_phase(&self) -> &str;

    // Provided methods
    fn pattern_flags(&self) -> &str { ... }
    fn primary_pattern_left_boundary(&self) -> &str { ... }
    fn primary_suffix(&self) -> &str { ... }
    fn following_suffix(&self) -> &str { ... }
    fn extract_primary_time_components(
        &self,
        context: &ParsingContext,
        m: &RegexMatch,
    ) -> Option<ParsingComponents> { ... }
    fn extract_following_time_components(
        &self,
        context: &ParsingContext,
        m: &RegexMatch,
        result: &mut ParsingResult,
    ) -> Option<ParsingComponents> { ... }
}
Expand description

The abstract members of AbstractTimeExpressionParser, with upstream’s defaults.

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§