skiplist_nif (erlang_skiplist v0.2.0) View Source

Internal module for interacting with the Rust side.

Link to this section Summary

Link to this section Functions

Specs

back_skiplist(Skiplist :: reference()) -> {ok, integer()} | {error, any()}.
Link to this function

clear_skiplist(Skiplist)

View Source

Specs

clear_skiplist(Skiplist :: reference()) -> ok | {error, any()}.
Link to this function

contains_skiplist(Skiplist, Value)

View Source

Specs

contains_skiplist(Skiplist :: reference(), Value :: integer()) -> boolean().
Link to this function

dedup_skiplist(Skiplist)

View Source

Specs

dedup_skiplist(Skiplist :: reference()) -> ok.
Link to this function

front_skiplist(Skiplist)

View Source

Specs

front_skiplist(Skiplist :: reference()) -> {ok, integer()} | {error, any()}.
Link to this function

get_skiplist(Skiplist, Index)

View Source

Specs

get_skiplist(Skiplist :: reference(), Index :: non_neg_integer()) ->
                {ok, integer()} | {error, any()}.
Link to this function

insert_skiplist(Skiplist, Value, Index)

View Source

Specs

insert_skiplist(Skiplist :: reference(), Value :: integer(), Index :: non_neg_integer()) ->
                   ok | {error, any()}.

Specs

len_skiplist(Skiplist :: reference()) -> non_neg_integer().
Link to this function

modify_skiplist(Skiplist, Value, Index)

View Source

Specs

modify_skiplist(Skiplist :: reference(), Value :: integer(), Index :: non_neg_integer()) ->
                   ok | {error, any()}.

Specs

new_skiplist() -> {ok, reference()} | {error, any()}.
Link to this function

pop_back_skiplist(Skiplist)

View Source

Specs

pop_back_skiplist(Skiplist :: reference()) -> {ok, integer()} | {error, any()}.
Link to this function

pop_front_skiplist(Skiplist)

View Source

Specs

pop_front_skiplist(Skiplist :: reference()) -> {ok, integer()} | {error, any()}.
Link to this function

push_back_skiplist(Skiplist, Value)

View Source

Specs

push_back_skiplist(Skiplist :: reference(), Value :: integer()) -> ok | {error, any()}.
Link to this function

push_front_skiplist(Skiplist, Value)

View Source

Specs

push_front_skiplist(Skiplist :: reference(), Value :: integer()) -> ok | {error, any()}.
Link to this function

remove_skiplist(Skiplist, Index)

View Source

Specs

remove_skiplist(Skiplist :: reference(), Index :: non_neg_integer()) ->
                   {ok, integer()} | {error, any()}.
Link to this function

with_capacity_skiplist(Capacity)

View Source

Specs

with_capacity_skiplist(Capacity :: pos_integer()) -> {ok, reference()} | {error, any()}.