Module pasture_core::util[][src]

Utilities

Functions

push_raw_bytes

Push the raw bytes for val into vec in the endianess of the current machine

sort_by_permutation

Sorts a slice using the given index permutation. An index permutation is any permutation of the range 0..n, where n is equal to slice.len()

sort_by_permutation_unchecked

Unchecked version of sort_by_permutation

sort_untyped_slice_by_permutation

Sorts a slice containing binary untyped data as if it did contain typed data. Sorting is performed using the given permutation. stride defines the offset between two consecutive elements within slice.

view_raw_bytes

Returns a byte slice that points to the raw bytes of val.

view_raw_bytes_mut

Returns a mutable byte slice that points to the raw bytes of val.