Crate sentinel

Source
Expand description

sentinel is a sentinel-terminated slice library.

Macros§

cstr
Creates a new CStr using a string literal. A null byte is automatically appended at the end of that literal, ensuring the safety of the operation.

Structs§

Display
Implements fmt::Display fmt::Debug for a CStr.
InlineSSlice
A sentinel-terminated slice that’s backed by a fixed-size array.
Iter
An iterator over the elements of a SSlice<T>.
SBox
An allocated SSlice<T> instance.
SSlice
A sentinel-terminated slice.
UnwrapSentinels
An iterator that automatically “unwraps” the sentinel values of an iterator.

Traits§

Sentinel
Types which have a sentinel value.

Type Aliases§

CStr
A type that wraps a “C-like” string.
InlineCStr
A sentinel-terminated string that’s backed by a fixed-size array.
UnwrapCopiedSentinels
A simple type-definition which indicates that values are copied before being “unwrapped”.