std_utils

Crates.iostd_utils
lib.rsstd_utils
version1.0.0
created_at2025-03-23 09:26:11.599492+00
updated_at2025-03-23 09:26:11.599492+00
descriptionStandard utilities for Rust
homepagehttps://github.com/LeviLovie/std_utils
repositoryhttps://github.com/LeviLovie/std_utils
max_upload_size
id1602497
size13,340
LeviLovie (LeviLovie)

documentation

README

std_utils

Some common utils I add to every project

Usage

This crate contains traits tht add .anyhow() to std::result::Result<T, String>, std::result::Result<T, std::error::Error>, and Option<T>. Method returns anyhow::Result<T, anyhow::Error>.

Trait Debugging also implements .log() and .logmsg("Msg here") which uses tracing to log an error if it exists and return self, .panic() and .panicmsg() do the same but panic in case of error, .context("Msg here") and .dot() are used for backtraces, taken from anyhow_ext.

Commit count: 5

cargo fmt