best_utils_lib_ever

Crates.iobest_utils_lib_ever
lib.rsbest_utils_lib_ever
version0.1.2
created_at2025-03-05 21:55:50.037841+00
updated_at2025-03-05 22:15:18.038311+00
descriptionBest utility library/crate ever made!
homepage
repository
max_upload_size
id1579887
size8,937
Programmer001 (SimplyProgrammer)

documentation

https://docs.rs/best_utils_lib_ever

README

String Power (string_utils):

reverse(text: &str) -> String: Reverses a given string. to_uppercase(text: &str) -> String: Converts all lowercase letters to uppercase (and vice versa with to_lowercase). replace_all(text: &str, old_sub: &str, new_sub: &str) -> String: Replaces all occurrences of a substring with another. pub fn initcap(text: &str) -> String: Will return original string with first letter capitalized

String utils (string_utils):

read_file(path: &str) -> Result<String, String>: Reads file contents gracefully, handling errors. write_file(path: &str, content: &str) -> Result<(), String>: Writes text to a file, catching any issues. modification_time(path: &str) -> Result<Duration, Box>: Will return duration that describes last time the file with provided path was modified. Otherwise, respective error will be provided.

Data mastery ():

sort_data(data: &mut Vec, field: &str) -> Result<(), String>: Sorts a list based on a specified field (replace T with your data type). filter_data(data: &[T], predicate: fn(T) -> bool) -> Vec: Filters data based on a custom condition you define.

Commit count: 0

cargo fmt