Crate flexstr

Crate flexstr 

Source
Expand description

A flexible, simple to use, immutable, clone-efficient String replacement for Rust

Re-exports§

pub use bytes::LocalBytes;bytes
pub use bytes::SharedBytes;bytes
pub use cstr::LocalCStr;cstr
pub use cstr::SharedCStr;cstr
pub use osstr::LocalOsStr;std and osstr
pub use osstr::SharedOsStr;std and osstr
pub use path::LocalPath;std and path
pub use path::SharedPath;std and path
pub use str::LocalStr;str
pub use str::SharedStr;str

Modules§

bytesbytes
Module for byte-based strings ([u8])
cstrcstr
Module for CStr-based strings
osstrstd and osstr
Module for OsStr-based strings
pathstd and path
Module for Path-based strings
strstr
Module for str-based strings

Structs§

InteriorNulErrorcstr
Error type returned when a C String has an interior NUL byte.

Enums§

FlexStr
Flexible string type that can store a borrowed string, an inline string, a reference counted string, or a boxed string

Traits§

ImmutableBytes
Marker trait for string types that don’t provide conversion from bytes to mutable string reference
RefCounted
Trait for storage that can be reference counted
RefCountedMut
Trait for storage that can be reference counted and mutable
StringLike
Trait for string types that provide various operations