Skip to content

OutOfRange

[Source]

Returned by Text indexing operations when the requested index is past the end of the Text in its unit (bytes / codepoints / graphemes). Carries the requested index and the actual size for diagnostics.

class val OutOfRange is
  Stringable box

Implements


Constructors

create

[Source]

new val create(
  index': USize val,
  size': USize val)
: OutOfRange val^

Parameters

Returns


Public fields

let index: USize val

[Source]


let size: USize val

[Source]


Public Functions

string

[Source]

fun box string()
: String iso^

Returns