divide

Crates.iodivide
lib.rsdivide
version0.1.1
sourcesrc
created_at2020-01-19 16:57:02.404091
updated_at2020-01-19 17:14:20.318095
descriptionDivide Library
homepagehttps://github.com/mazharjameel786/divide.git
repositoryhttps://github.com/mazharjameel786/divide.git
max_upload_size
id200178
size26,486
(mazharjameel786)

documentation

README

Divide function

this is a demo rust library published on crates.io

to use this library you have to add following line in dependency section of cargo.toml

divide = "0.1.1"

your cargo.toml file should look like this:

[package]
name = "divide"
version = "0.1.0"
authors = ["mazhar_jamil"]
edition = "2018"

[dependencies]
divide = "0.1.1"

In src/main.rs you can use like this:

use divide::arithmetic::division;
fn main() {
    println!("Hello, world!");
    division::division_res(20.0,4.0);
}

use divide::arithmetic::division::division_res;


fn main() {
    println!("Hello, world!");
    division_res(20.0,4.0);
    }

now cargo run for results

Commit count: 3

cargo fmt