Module alloc::str

1.0.0 · source ·
Expand description

Utilities for the str primitive type.

See also the str primitive type.

Modules

  • patternExperimental
    The string Pattern API.

Macros

Structs

Traits

Functions

  • Converts the bytes while the bytes are still ascii. For better average performance, this is happens in chunks of 2*size_of::<usize>(). Returns a vec with the converted bytes.
  • Converts a boxed slice of bytes to a boxed string slice without checking that the string contains valid UTF-8.
  • Converts a slice of bytes to a string slice.
  • Converts a mutable slice of bytes to a mutable string slice.
  • Converts a slice of bytes to a string slice without checking that the string contains valid UTF-8.
  • Converts a slice of bytes to a string slice without checking that the string contains valid UTF-8; mutable version.