[][src]Module odds::slice

Extra functions for slices

Re-exports

pub use self::rev::RevSlice;

Modules

blocked

Blocked iterator

iter

Slice iterators

rev

A reversed view of a slice.

unalign

An iterator for (possibly unaligned) blocking of byte ranges

Traits

Pod

"plain old data": Types that we can stick arbitrary bit patterns into, and thus use them as blocks in split_aligned_for or in UnalignedIter.

SliceFind

Element-finding methods for slices

SliceFindSplit

Element-finding methods for slices

Functions

rotate_left

Rotate steps towards lower indices.

shared_prefix

Return the end index of the longest shared (equal) prefix of a and b.

split_aligned_for

Split the input slice into three chunks, so that the middle chunk is a slice of a larger "block size" (for example T could be u64) that is correctly aligned for T.