[][src]Module logicsim::data_structures

Structs

BitIter

Data structure that allows for iterating over the native endian bits of any Sized + Copy + 'static value.

DoubleStack

Data structure consisting of a write stack and a read stack, write operations are performed on the write stack, read operations are performed on the read stack and calling DoubleStack::swap swaps them.

Immutable

Data structure that enforces immutability at compile time.

Slab

Simple slab allocator. Stores items of the same type and can reuse removed indexes.

SlabIndex

Transparent type that represents an index into a Slab.

State

Data structure that represents a fixed size (at runtime) array of bits, State will keep track of when bits are updated until the next call to State::tick.

Functions

word_mask_8

Returns the index and mask necessary to access the bit at index in a &[u8].

word_mask_64

Returns the index and mask necessary to access the bit at index in a &[u64].