• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// generated by diplomat-tool
2import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
3
4
5/** Result of a single iteration of [`CodePointRangeIterator`].
6*Logically can be considered to be an `Option<RangeInclusive<DiplomatChar>>`,
7*
8*`start` and `end` represent an inclusive range of code points [start, end],
9*and `done` will be true if the iterator has already finished. The last contentful
10*iteration will NOT produce a range done=true, in other words `start` and `end` are useful
11*values if and only if `done=false`.
12*/
13
14
15export class CodePointRangeIteratorResult {
16
17    get start() : codepoint;
18
19    get end() : codepoint;
20
21    get done() : boolean;
22
23}