reproto-path-lexer 0.3.25

path lexer used with the reproto parser
Documentation
use std::borrow::Cow;

#[derive(Clone, Debug, PartialEq)]
pub enum PathToken<'input> {
    /// Variable identifier.
    Identifier(Cow<'input, str>),
    /// Potentially escaped segment.
    Segment(String),
    Slash,
    LeftCurly,
    RightCurly,
}