#module #error #size #fixed-size #generic #string #copy

yanked yacopstr

Yet Another COpy STRing module

0.0.1 Nov 14, 2021

#131 in #fixed-size

MIT license

8KB
107 lines

CI coveralls crates.io doc.rs

yacopstr: Yet Another COPy STRing module

yacopstr's Str wraps a fixed-size array of u8 and provides a string-like interface on top. The size is specified using a const generic argument.

The internal u8 array corresponds to UTF-8 encoded chars. All functions guarantee that the contents are valid UTF-8 and return an error if they are not.


lib.rs:

yacopstr is Yet Another COPy STRing module

yacopstr's [Str] wraps a fixed-size array of u8 and provides a string-like interface on top. The size is specified using a const generic argument.

The internal u8 array corresponds to UTF-8 encoded chars. All functions guarantee that the contents are valid UTF-8 and return an error if they are not.

No runtime deps