rusty_utils

Crates.iorusty_utils
lib.rsrusty_utils
version0.1.1
sourcesrc
created_at2023-12-10 18:10:40.390249
updated_at2023-12-11 17:06:56.20052
descriptionA Rust package that provides utility functions inspired by or ported from other programming languages.
homepage
repository
max_upload_size
id1064420
size13,741
Iker Muñoz Molero (iker-molero)

documentation

README

Rusty Utils

Crate Test Docs

A Rust package that provides utility functions inspired by or ported from other programming languages to make transitioning from JS or Python a lot easier. Some of those functions are:

  • ternary_operator(): a function to emulate the ternary operator that is not present in Rust.
  • reverse_string(): inspired by the array.reverse() method available in JS.
  • concat_arrays(): a fast way to add all the values present in multiples arrays into a single vector.

There's more detailed documentation available here.
More functions and methods from other languages will be added in the future.

Usage

Add this to your cargo.toml:

[dependencies]
rusty_utils = "*"    

You can choose replace the asterisk with your prefered version number, or keep it to use the latest version.

Contributing

If you see a bug, have some idea that would be cool to add, or want to improve the looks of the documentation:

  • Fork the repository.
  • Add you contribution in a new branch.
  • Send a pull request.

All contributions are welcome, don't be shy!

License

This project is licensed under the MIT License.

Commit count: 0

cargo fmt