Lyricdev
GitHub

enum Segment

pub enum Segment :: [Debug]

Conforms to Debug.

A piece of an f-string: text as written, or a hole with its expression and its format spec.

Variants

Text(string)
Hole(Expr, ?string)