devela::text

Module str

Source
Expand description

String types and related functionality.

Extends: std::{str, string}


Macros§

  • strdep_const_str
    &str compile-time operations, namespaced from the const-str crate.

Structs§

  • core Representation of a borrowed C string (See CString).
  • alloc An owned, C-compatible, nul-terminated string with no nul bytes in the middle.
  • std Borrowed reference to an OS string (See OsString).
  • std A type that can represent owned, mutable platform-native strings, but is cheaply inter-convertible with Rust strings.
  • Strstr
    A string slice namespace.
  • Stringalloc
    alloc A UTF-8–encoded, growable string.
  • StringNonul_string_nonul
    A UTF-8-encoded string, backed by an array with u8::MAX bytes of capacity. Can’t contain nul chars.
  • StringU8_string_u8
    A UTF-8–encoded string, backed by an array with u8::MAX bytes of capacity.
  • StringU16_string_u16
    A UTF-8–encoded string, backed by an array with u16::MAX bytes of capacity.
  • StringU32_string_u32
    A UTF-8–encoded string, backed by an array with u32::MAX bytes of capacity.
  • StringUsize_string_usize
    A UTF-8–encoded string, backed by an array with usize::MAX bytes of capacity.

Traits§

  • Extension trait providing additional methods for &str.
  • ExtStringstr and alloc
    Extension trait providing additional methods for String.
  • core Parse a value from a string.
  • alloc A trait for converting a value to a String.