Skip to main content

ELEMENT_KINDS

Constant ELEMENT_KINDS 

Source
pub const ELEMENT_KINDS: &[&str];
Expand description

The element kinds, each of which gets its own real prototype object whose parent is the shared %TypedArray%.prototype. Uint8Array leads because Buffer.prototype chains onto it.

BigInt64Array/BigUint64Array are here too, and they are not interchangeable with the rest: their elements are BigInts, so a Number written into one is a TypeError and a Number-kind view will not accept one either (coerce_val).