W3cubDocs

/Pony

_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 = 0,
  nm: U32 val = 0,
  dm: U32 val = 0)
: _MapSubNodes[K, V, H] trn^

Parameters

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

© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/collections-persistent-_MapSubNodes