Crate lesbar

Crate lesbar 

Source
Expand description

Lesbar provides string types that must encode legible text.

At time of writing, rustdoc ignores input type parameters in the “Methods from Deref<Target = _>” section. For types that implement Deref<Target = NonEmpty<_>>, the API documentation may be misleading and list all methods of NonEmpty regardless of its input type parameter. This is mostly a problem for types that dereference to Str1, such as TStr. See this rustdoc bug.

§Integrations and Cargo Features

Lesbar supports no_std environments and provides features for integrating as needed with alloc. By default, the alloc feature is enabled for complete support of the standard library.

The following table summarizes supported Cargo features and integrations.

FeatureDefaultPrimary DependencyDescription
allocYesallocLegible string buffers, like TString.
serdeNoserdeDe/serialization of legible strings with serde.

Modules§

iter
prelude
Re-exports of recommended APIs and extension traits.
tstr
A non-empty str that represents legible text.
tstringalloc
A non-empty String that represents legible text.

Macros§

str1
tstr

Structs§

Grapheme
Text

Traits§

StrExt