Crate elfo_utils

Crate elfo_utils 

Source
Expand description

A collection of utilities to share among elfo-* crates.

Modules§

time
Provides Instant and SystemTime types.

Macros§

cooldown
A simple macro to check if a cooldown period has passed since the last time.
ward
Returns the contents of a Option<T>’s Some(T), otherwise it returns early from the function. Can alternatively have an else branch, or an alternative “early return” statement, like break or continue for loops.

Structs§

CachePadded
Pads and aligns a value to the length of a cache line.
RateLimiter
A rate limiter implementing GCRA.

Enums§

RateLimit
A rate limit configuration.

Functions§

likely
Hints the compiler that this branch is likely to be taken.
unlikely
Hints the compiler that this branch is unlikely to be taken.