> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Primitive type str

Module: `std`

The string type.

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

## Implementations

```rust
impl<let N: u32> str<N>
```

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

Converts the given string into a byte array

```rust
pub fn as_bytes_vec(self) -> [u8]
```

return a byte vector of the str content
