Documentation
  • Coverage
  • 0%
    0 out of 4 items documented0 out of 1 items with examples
  • Size
  • Source code size: 26.48 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.03 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • mazharjameel786/divide
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mazharjameel786

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