Crates.io | essentials |
lib.rs | essentials |
version | 0.3.0 |
source | src |
created_at | 2024-06-30 17:43:16.38867 |
updated_at | 2024-07-28 07:25:50.104427 |
description | essential utils for rustaceans |
homepage | |
repository | https://github.com/Nishikigii/essentials.rs |
max_upload_size | |
id | 1288113 |
size | 8,583 |
let our crate make a important role in your project!
essentials currently unstable version,
everything may refactoring in anytime.
think twice if you intend it into your important projects!
[dependencies]
essentials = "0.3.0"
view github to download the source code and official builds.
let result: Result<&str,&str> = Err("error");
let option: Option<&str> = None;
let result = result.summary( |_| "default" );
let option = option.summary( | | "default" );
println!("result: {result}");
println!("option: {option}");
/// actions may be failure
pub fn execute()-> Reason<String>
{
return Success;
}
let result = execute();
result.on_success(| | println!("success"));
result.on_failure(|e| println!("fail for {e}"));
none document published yet but comming soon