Skip to main content

to_array

Function to_array 

Source
pub const fn to_array<const N: usize>(s: &str) -> [u8; N]
Expand description

Copy a string slice into a fixed-size byte array at compile time, leaving space for a null terminator.