arithmetic_yukinari

Crates.ioarithmetic_yukinari
lib.rsarithmetic_yukinari
version0.1.7
sourcesrc
created_at2023-12-07 00:57:33.958033
updated_at2023-12-07 04:43:24.05664
descriptionA simple arithmetic library
homepage
repositoryhttps://github.com/Sei-Yukinari/arithmetic_yukinari
max_upload_size
id1060579
size4,535
Sei Yukinari (Sei-Yukinari)

documentation

README

arithmetic_yukinari

Rust Test and Publish crate-name at crates.io crate-name at docs.rs

Description

This crate is a library for arithmetic operations.

Installation

[dependencies]
arithmetic_yukinari = "0.1"

Usage

use arithmetic_yukinari::{add, subtract, multiply, divide};

fn main() {
    let a = add(1, 2);
    assert_eq!(a, 3);
    let s = subtract(1, 2);
    assert_eq!(s, -1);
    let m = multiply(2, 3);
    assert_eq!(m, 6);
    let d = divide(6, 3);
    assert_eq!(d, Some(2));
}
Commit count: 24

cargo fmt