Skip to main content

Module core

Module core 

Source

Functions§

clamp_index
Take a requested index and the maximum size of the item container. Check if the index is valid and return an error if it is. The purpose of this function is to enable handling of out of bounds without triggering a panic. Also, add negative indices like Python does when doing a reverse search!
is_unique
new_random_buffer
Generates a new random buffer using the getrandom crate and wrapped inside a RUMBuffer. The buffer will be exactly 1024 bytes.

Type Aliases§

RUMError
RUMResult
Type used for propagating error messages.
RUMVec