Skip to content

_MapCollisions[K: Any #share, V: Any #share, H: HashFunction[K] val]

[Source]

class val _MapCollisions[K: Any #share, V: Any #share, H: HashFunction[K] val]

Constructors

create

[Source]

new trn create()
: _MapCollisions[K, V, H] trn^

Returns


Public fields

embed bins: Array[Array[_MapEntry[K, V, H] val] trn] trn

[Source]


Public Functions

clone

[Source]

fun val clone()
: _MapCollisions[K, V, H] trn^

Returns


apply

[Source]

fun box apply(
  hash: U32 val,
  k: K)
: (V | None val) ?

Parameters

  • hash: U32 val
  • k: K

Returns


remove

[Source]

fun val remove(
  hash: U32 val,
  k: K)
: _MapCollisions[K, V, H] val ?

Parameters

  • hash: U32 val
  • k: K

Returns


pull_last

[Source]

fun val pull_last()
: _MapEntry[K, V, H] val ?

Returns


update_mut

[Source]

fun ref update_mut(
  hash: U32 val,
  entry: _MapEntry[K, V, H] val)
: Bool val ?

Parameters

Returns


iter

[Source]

fun val iter()
: _MapIter[K, V, H] ref

Returns