SpecializedIndexed

zio.blocks.schema.binding.SeqDeconstructor.SpecializedIndexed
sealed trait SpecializedIndexed[C[_]] extends SeqDeconstructor[C]

A deconstructor for an array-backed collection (Array, ArraySeq and, on Scala 3 only, IArray) that also reads an element by index. elementType tells which of the typed readers fits, and index must be in 0 until size(c).

Attributes

Source
SeqDeconstructor.scala
Graph
Supertypes
trait SeqDeconstructor[C]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def booleanAt(c: C[Boolean], index: Int): Boolean

Returns the Boolean element of c at index.

Returns the Boolean element of c at index.

Attributes

Source
SeqDeconstructor.scala
def byteAt(c: C[Byte], index: Int): Byte

Returns the Byte element of c at index.

Returns the Byte element of c at index.

Attributes

Source
SeqDeconstructor.scala
def charAt(c: C[Char], index: Int): Char

Returns the Char element of c at index.

Returns the Char element of c at index.

Attributes

Source
SeqDeconstructor.scala
def doubleAt(c: C[Double], index: Int): Double

Returns the Double element of c at index.

Returns the Double element of c at index.

Attributes

Source
SeqDeconstructor.scala
def elementType[A](c: C[A]): RegisterType[A]

Returns the register type of the elements of c, from the runtime class of its array: a primitive RegisterType for an array of Boolean, Byte, Short, Int, Long, Float, Double or Char, and RegisterType.Object() for any other array.

Returns the register type of the elements of c, from the runtime class of its array: a primitive RegisterType for an array of Boolean, Byte, Short, Int, Long, Float, Double or Char, and RegisterType.Object() for any other array.

Attributes

Source
SeqDeconstructor.scala
def floatAt(c: C[Float], index: Int): Float

Returns the Float element of c at index.

Returns the Float element of c at index.

Attributes

Source
SeqDeconstructor.scala
def intAt(c: C[Int], index: Int): Int

Returns the Int element of c at index.

Returns the Int element of c at index.

Attributes

Source
SeqDeconstructor.scala
def longAt(c: C[Long], index: Int): Long

Returns the Long element of c at index.

Returns the Long element of c at index.

Attributes

Source
SeqDeconstructor.scala
def objectAt[A](c: C[A], index: Int): A

Returns the element of c at index.

Returns the element of c at index.

Attributes

Source
SeqDeconstructor.scala
def shortAt(c: C[Short], index: Int): Short

Returns the Short element of c at index.

Returns the Short element of c at index.

Attributes

Source
SeqDeconstructor.scala

Inherited and Abstract methods

def deconstruct[A](c: C[A]): Iterator[A]

Returns an iterator over the elements of c, in its iteration order.

Returns an iterator over the elements of c, in its iteration order.

Attributes

Inherited from:
SeqDeconstructor
Source
SeqDeconstructor.scala
def size[A](c: C[A]): Int

Returns the number of elements of c.

Returns the number of elements of c.

Attributes

Inherited from:
SeqDeconstructor
Source
SeqDeconstructor.scala