Enum ::patch::Selector

Selects if a line should be edited by LineEditor or not

Variants

All

Match all lines

Eof

End of file

Match a specific line number (1-indexed)

A range of line numbers (1-indexed, inclusive)

A regex to match the line

A custom function, passed the line number and current line, returning a bool

Protocols

protocol is_variant

Test if the provided argument is a variant.

protocol get
let output = value.0

Allows a get operation to work.

protocol get
let output = value.1

Allows a get operation to work.