Bitmap behaviour

Defines behaviour of a Bitmap, which can be implemented by the user. We provide implementations using Binary and Integers.

This behavior has been designed to be pipe-friendly, so pipe ‘em up.

Methods are delegated to the default implementation which is currently, integer - Bitmap.Integer.

Source

Summary

at(bitmap, index)
inspect(bitmap)
new(argument)
set(bitmap, index)
set?(bitmap, index)
set_all(bitmap)
to_string(bitmap)
toggle(bitmap, index)
toggle_all(bitmap)
unset(bitmap, index)
unset?(bitmap, index)
unset_all(bitmap)

Types

bitmap :: binary | Bitmap.Integer.t

index :: non_neg_integer

bit :: 1 | 0

argt :: non_neg_integer | list | Range.t

Functions

at(bitmap, index)
Source
inspect(bitmap)
Source
new(argument)
Source
set(bitmap, index)
Source
set?(bitmap, index)
Source
set_all(bitmap)
Source
to_string(bitmap)
Source
toggle(bitmap, index)
Source
toggle_all(bitmap)
Source
unset(bitmap, index)
Source
unset?(bitmap, index)
Source
unset_all(bitmap)
Source

Callbacks

new/1

Specs:

Source
at/2

Specs:

Source
set?/2

Specs:

Source
set/2

Specs:

Source
set_all/1

Specs:

Source
unset?/2

Specs:

Source
unset/2

Specs:

Source
unset_all/1

Specs:

Source
toggle/2

Specs:

Source
toggle_all/1

Specs:

Source
to_string/1

Specs:

Source
inspect/1

Specs:

Source