copystr

Crates.iocopystr
lib.rscopystr
version0.0.5
sourcesrc
created_at2019-09-12 13:26:37.603118
updated_at2020-07-19 15:12:19.257894
description&str with `Copy` semantics.
homepage
repositoryhttps://git.sr.ht/~kvsari/copystr
max_upload_size
id164398
size21,647
Stephan Luther (kvsari)

documentation

https://docs.rs/copystr/0.0.5/

README

Copy String

&str on the stack. Gains Copy semantics.

Development Note

This crate is in its infancy. Right now it is more an 'act on my inspiration quickly' than a fully featured library.

Now with serde!

Rust Docs

Documentation is here.

Installation

Add to your Cargo.toml:

[dependencies]
copystr = "0.0.4"

Usage

Various fixed length strings are defined, s4, through to s32. Use TryFrom to convert a &str into a copy string. Alternatively, define your own custom lenght copy strings using the csstring macro.

To enable serde Serialize and Deserialize use the "serde" feature.

[dependencies]
copystr = { version = "0.0.4", features = [ "serde" ] }
Commit count: 0

cargo fmt