aztec-nr - std

Primitive type str

The string type.

Denoted str<N>, its length N must be known at compile-time.

Implementations

impl<let N: u32> str<N>

pub fn as_bytes(self) -> [u8; N]

Converts the given string into a byte array

pub fn as_bytes_vec(self) -> Vec<u8>

return a byte vector of the str content