Crate conststr

Crate conststr 

Source
Expand description

conststr is a Rust crate for const-compatible, owning strings.

§Feature flags

The following features are enabled by default:

  • alloc: Enables implementations for alloc facilities
  • std: Enables implementations for std facilities

The following features may additionally be enabled:

  • bytemuck: Enables implementations for bytemuck traits
  • oct: Enables implementations for Oct facilities
  • serde: Enables implementations for Serde facilities
  • zerocopy: Enables implementations for Zerocopy traits

Copyright © 2025 Gabriel Bjørnager Jensen.

conststr is distributed under either an MIT licence (see LICENCE-MIT) or version 2.0 of the Apache License (see LICENCE-APACHE), at your option.

Modules§

error
Error types.

Macros§

string
Directly constructs a String object.

Structs§

String
String container with maximum length.