Skip to main content

LineParser

Type Alias LineParser 

Source
pub type LineParser = Box<dyn Fn(&str, Option<DateTime<Utc>>) -> (DateTime<Utc>, String) + Send + Sync>;
Expand description

A type alias for the line parsing function.

The function receives the String line and the Option<DateTime<Utc>> of the previously parsed line, returning a (DateTime<Utc>, String) tuple.

Aliased Typeยง

pub struct LineParser(/* private fields */);