Trait RawKeySpecifierComponentParser

Source
pub trait RawKeySpecifierComponentParser {
    // Required method
    fn parse(&mut self, comp: &Slug) -> RawComponentParseResult;
}
Expand description

Trait for parsing a path component, used by parse_key_path

Implemented for Option<impl KeySpecifierComponent>, and guarantees to fill in the Option if it succeeds.

Also implemented for &str: just checks that the string is right, (and, doesn’t modify *self).

Required Methods§

Source

fn parse(&mut self, comp: &Slug) -> RawComponentParseResult

Check that comp is as expected, and store any results in self.

Implementations on Foreign Types§

Source§

impl<'s> RawKeySpecifierComponentParser for &'s str

Source§

fn parse(&mut self, comp: &Slug) -> RawComponentParseResult

Source§

impl<T: KeySpecifierComponent> RawKeySpecifierComponentParser for Option<T>

Source§

fn parse(&mut self, comp: &Slug) -> RawComponentParseResult

Implementors§