Expand description
Trait impls for core slices.
Macrosยง
- assert_
lengths_ ๐eq - Assert the lengths of the two slices are equal.
- assert_
size_ ๐and_ alignment_ eq - Ensure the two provided types have the same size and alignment.
- impl_
cmov_ ๐with_ cast - Implement
CmovandCmovEqtraits by casting to a different type that impls the traits. - impl_
cmov_ ๐with_ loop - Implement
Cmovusing a simple loop. - impl_
cmoveq_ ๐with_ cast - Implement
CmovEqtraits by casting to a different type that impls the traits. - impl_
cmoveq_ ๐with_ loop - Implement
CmovEqusing a simple loop.
Constantsยง
- WORD_
SIZE ๐
Functionsยง
- cast_
slice ๐ โ - Performs an unsafe pointer cast from one slice type to the other.
- cast_
slice_ ๐ โmut - Performs an unsafe pointer cast from one mutable slice type to the other.
- cmovne_
remainder ๐ - Compare the two remainder slices by loading a
Wordthen performingcmovne. - cmovnz_
remainder ๐ - Load the remainder from chunking the slice into a single
Word, performcmovnz, then write the result back out todst_remainder. - slice_
as_ ๐chunks - Rust core
[T]::as_chunksvendored because of its 1.88 MSRV. TODO(tarcieri): use upstream function when we bump MSRV - slice_
as_ ๐chunks_ mut - Rust core
[T]::as_chunks_mutvendored because of its 1.88 MSRV. TODO(tarcieri): use upstream function when we bump MSRV - slice_
as_ ๐ โchunks_ unchecked - Rust core
[T]::as_chunks_uncheckedvendored because of its 1.88 MSRV. TODO(tarcieri): use upstream function when we bump MSRV - slice_
as_ ๐ โchunks_ unchecked_ mut - Rust core
[T]::as_chunks_unchecked_mutvendored because of its 1.88 MSRV. TODO(tarcieri): use upstream function when we bump MSRV - slice_
to_ ๐word - Create a
Wordfrom the given input slice. - word_
to_ ๐slice - Serialize
Wordas bytes using the same byte ordering asslice_to_word.
Type Aliasesยง
- Word ๐