You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scalar_at / scalar_at_unchecked can be called at least three ways: scalar_at(array, index), encoded_array.scalar_at(index), and array.with_dyn(|a| a.scalar_at(index). The semantics of the latter two differ from that of the first.
There are four possible combinations of bounds-checking and validity-checking but for any given pair of scalar_at / scalar_at_unchecked, only two versions are available. Moreover, no option performs validity checks without bounds checks.
function
bounds checked
validity checked
scalar_at(array, index)
yes
yes
scalar_at_unchecked(array, index)
no
no
encoded_array.scalar(index)
yes
no
encoded_array.scalar_at_unchecked(index)
no
no
NB: with_dyn has the same semantics as the second pair.
The text was updated successfully, but these errors were encountered:
There are two core issues:
scalar_at
/scalar_at_unchecked
can be called at least three ways:scalar_at(array, index)
,encoded_array.scalar_at(index)
, andarray.with_dyn(|a| a.scalar_at(index)
. The semantics of the latter two differ from that of the first.There are four possible combinations of bounds-checking and validity-checking but for any given pair of
scalar_at
/scalar_at_unchecked
, only two versions are available. Moreover, no option performs validity checks without bounds checks.scalar_at(array, index)
scalar_at_unchecked(array, index)
encoded_array.scalar(index)
encoded_array.scalar_at_unchecked(index)
NB: with_dyn has the same semantics as the second pair.
The text was updated successfully, but these errors were encountered: