Skip to main content

byte_string

Function byte_string 

Source
pub fn byte_string(value: &[i8]) -> ByteString<'_>
Expand description

Wraps a PROCTOR char * mapping for C printf-compatible s formatting.

The selected bytes must be valid UTF-8. Precision and width count bytes, and missing precision selects bytes preceding the first NUL. See the module documentation for paired Rust and C examples of %s, width, left alignment, precision, NUL termination, and multibyte UTF-8.