Skip to main content

StrSegment

Type Alias StrSegment 

Source
pub type StrSegment<'a> = Segment<char, &'a str>;
Expand description

A borrowed, type-erased representation of a Segment.

Aliased Type§

pub enum StrSegment<'a> {
    Chunk(&'a str),
    Delim(char),
}

Variants§

§

Chunk(&'a str)

A chunk (run of non-delimiter characters) of an identifier.

§

Delim(char)

A single delimiter.