Crate flexstr

Crate flexstr 

Source
Expand description

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

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

Type Aliases§

LocalBytesbytes
Local [u8] type (NOTE: This can’t be shared between threads)
LocalCStrcstr
Local CStr type (NOTE: This can’t be shared between threads)
LocalOsStrstd and osstr
Local OsStr type (NOTE: This can’t be shared between threads)
LocalPathstd and path
Local Path type (NOTE: This can’t be shared between threads)
LocalStrstr
Local str type (NOTE: This can’t be shared between threads)
SharedBytesbytes
Shared [u8] type
SharedCStrcstr
Shared CStr type
SharedOsStrstd and osstr
Shared OsStr type
SharedPathstd and path
Shared Path type
SharedStrstr
Shared str type