nomore

Crates.ionomore
lib.rsnomore
version0.2.1
sourcesrc
created_at2022-02-09 20:42:50.619743
updated_at2022-02-19 11:26:17.686441
descriptionPersonal Standard Rust Lib Publics for reuse and to avoid redefinition
homepage
repositoryhttps://github.com/m0lese/nomore
max_upload_size
id529883
size25,549
Molese (m0lese)

documentation

README

Examples

const MEM_LIMIT: u128 = power(2, 15);

let (rand_products_0, rand_products_1): (u128, u128) = (product!([1, 2, 3, 4]), product!(vec![5, 6, 7, 8, 9]));

if rand_bool() { println!("I'm lucky!"); }

if !is_even(n) {
    die(false, 0, "n is not even");
}

if !is_executable(cmd) {
    die(true, -1, "cmd is not executable");
}

assert_eq!(any_to_string(0), "0".to_string());
assert_eq!(any_to_string("0".to_string()), "0".to_string());
assert_eq!(any_to_string(0u8), "0".to_string());
assert_eq!(any_to_string(0u16), "0".to_string());
assert_eq!(any_to_string(0u32), "0".to_string());
assert_eq!(any_to_string(0u64), "0".to_string());
assert_eq!(any_to_string(0u128), "0".to_string());
assert_eq!(any_to_string(0usize), "0".to_string());
assert_eq!(any_to_string(0i8), "0".to_string());
assert_eq!(any_to_string(0i16), "0".to_string());
assert_eq!(any_to_string(0i32), "0".to_string());
assert_eq!(any_to_string(0i64), "0".to_string());
assert_eq!(any_to_string(0i128), "0".to_string());
assert_eq!(any_to_string(0isize), "0".to_string());
assert_eq!(any_to_string(0.0f32), "0".to_string());
assert_eq!(any_to_string(0.0f64), "0".to_string());
Commit count: 0

cargo fmt