Skip to content

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

[Source]

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

Constructors

create

[Source]

new trn create(
  size: USize val = seq,
  nm: U32 val = seq,
  dm: U32 val = seq)
: _MapSubNodes[K, V, H] trn^

Parameters

  • size: USize val = seq
  • nm: U32 val = seq
  • dm: U32 val = seq

Returns


Public fields

embed nodes: Array[(_MapEntry[K, V, H] val | _MapCollisions[K, V, H] val | _MapSubNodes[K, V, H] val)] trn

[Source]


var node_map: U32 val

[Source]


var data_map: U32 val

[Source]


Public Functions

clone

[Source]

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

Returns


compressed_idx

[Source]

fun box compressed_idx(
  idx: U32 val)
: U32 val

Parameters

Returns


apply

[Source]

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

Parameters

  • depth: U32 val
  • hash: U32 val
  • k: K

Returns


update

[Source]

fun val update(
  depth: U32 val,
  hash: U32 val,
  k: K,
  v: V)
: (_MapSubNodes[K, V, H] val , Bool val) ?

Parameters

  • depth: U32 val
  • hash: U32 val
  • k: K
  • v: V

Returns


update_mut

[Source]

fun ref update_mut(
  depth: U32 val,
  hash: U32 val,
  k: K,
  v: V)
: Bool val ?

Parameters

  • depth: U32 val
  • hash: U32 val
  • k: K
  • v: V

Returns


remove

[Source]

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

Parameters

  • depth: U32 val
  • hash: U32 val
  • k: K

Returns


iter

[Source]

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

Returns