Codex.Protocol.ByteRange (Codex SDK v0.16.1)

Copy Markdown View Source

Byte range for text element positioning.

Summary

Types

t()

A byte range with start and end positions

Types

t()

@type t() :: %Codex.Protocol.ByteRange{
  end: non_neg_integer(),
  start: non_neg_integer()
}

A byte range with start and end positions

Functions

from_map(map)

@spec from_map(map()) :: t()

to_map(br)

@spec to_map(t()) :: map()