baml.panics.IndexOutOfBounds
Raised when an array or string is accessed with an out-of-bounds index.
Reference version
Signature
class baml.panics.IndexOutOfBoundsRaised when an array or string is accessed with an out-of-bounds index.
Examples
let arr = [1, 2, 3];
let result = arr[5]; // panics
Source:<builtin>/baml/ns_panics/panics.bamlbytes 596–655
Fields
index
intlength
intImplementations
baml.Concrete for T
Static methods
function
type
() -> reflect.Type throws neverThis type's runtime type value: int.type() is the same value as
reflect.Type.of<int>().
Spell it on a declared type written as one name, optionally qualified
or with generic arguments: Foo.type(), root.models.Base.type(),
Box<int[]>.type(). Array, optional, union, map and function types,
interfaces, and generic type parameters keep the reflect.Type.of<T>()
form. A type that declares its own type member keeps resolving to it.
Source:<builtin>/baml/core.bamlbytes 1360–1392