Module konst::slice[][src]

const fn equivalents of slice methods.

Modules

cmpcmp

const fns for comparing slices for equality and ordering.

Functions

bytes_contain

Whether right is inside &left[from..].

bytes_end_with

A const equivalent of <[u8]>::ends_with

bytes_find

Finds the byte offset of right inside &left[from..].

bytes_rcontain

Returns whether right is contained inside &left[..=from] searching in reverse.

bytes_rfind

Finds the byte offset of right inside &left[..=from], searching in reverse.

bytes_start_with

A const equivalent of <[u8]>::starts_with

bytes_strip_prefix

A const equivalent of <[u8]>::strip_prefix

bytes_strip_suffix

A const equivalent of <[u8]>::strip_suffix

cmp_bytes

Compares two &[u8], returning the order of left relative to right.

cmp_option_bytes

Compares two Option<&'a [u8]>, returning the ordering of left relative to right.

eq_bytes

Compares two &[u8] for equality.

eq_option_bytes

Compares two Option<&'a [u8]> for equality.

slice_from

A const equivalent of &slice[start..].

slice_range

A const equivalent of &slice[start..end].

slice_up_to

A const equivalent of &slice[..len].

split_at

A const equivalent of <[T]>::split_at