pub trait TagParser: TagValidator {
type GlobalTags;
type LocalTags;
// Required methods
fn parse_global(
&self,
global_tags: &HashMap<String, Option<String>>,
mir: &RtLolaMir,
) -> Result<Self::GlobalTags, RtLolaError>;
fn parse_local(
&self,
sr: StreamReference,
tags: &HashMap<String, Option<String>>,
mir: &RtLolaMir,
) -> Result<Self::LocalTags, RtLolaError>;
}
Expand description
Represents a parser supporting a subset of all tags annotated to the specification
Required Associated Types§
Sourcetype GlobalTags
type GlobalTags
The type representing the result of parsing global tags
Required Methods§
Sourcefn parse_global(
&self,
global_tags: &HashMap<String, Option<String>>,
mir: &RtLolaMir,
) -> Result<Self::GlobalTags, RtLolaError>
fn parse_global( &self, global_tags: &HashMap<String, Option<String>>, mir: &RtLolaMir, ) -> Result<Self::GlobalTags, RtLolaError>
Parses the global tags to Self::GlobalTags
Sourcefn parse_local(
&self,
sr: StreamReference,
tags: &HashMap<String, Option<String>>,
mir: &RtLolaMir,
) -> Result<Self::LocalTags, RtLolaError>
fn parse_local( &self, sr: StreamReference, tags: &HashMap<String, Option<String>>, mir: &RtLolaMir, ) -> Result<Self::LocalTags, RtLolaError>
Parses the tags annotated to a stream to Self::LocalTags