Trait TagParser

Source
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§

Source

type GlobalTags

The type representing the result of parsing global tags

Source

type LocalTags

The type representing the result of parsing local tags (on streams)

Required Methods§

Source

fn parse_global( &self, global_tags: &HashMap<String, Option<String>>, mir: &RtLolaMir, ) -> Result<Self::GlobalTags, RtLolaError>

Parses the global tags to Self::GlobalTags

Source

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

Implementors§