rusty_utils 0.1.1

A Rust package that provides utility functions inspired by or ported from other programming languages.
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented3 out of 3 items with examples
  • Size
  • Source code size: 13.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.24 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • iker-molero

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.