Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Numeric traits for generic mathematics in Rust

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
NotificationsYou must be signed in to change notification settings

rust-num/num-traits

Repository files navigation

cratedocumentationminimum rustc 1.60build status

Numeric traits for generic mathematics in Rust.

Usage

Add this to yourCargo.toml:

[dependencies]num-traits ="0.2"

Features

This crate can be used without the standard library (#![no_std]) by disablingthe defaultstd feature. Use this inCargo.toml:

[dependencies.num-traits]version ="0.2"default-features =false# features = ["libm"]    # <--- Uncomment if you wish to use `Float` and `Real` without `std`

TheFloat andReal traits are only available when eitherstd orlibm is enabled.

TheFloatCore trait is always available.MulAdd andMulAddAssign forf32andf64 also requirestd orlibm, as do implementations of signed and floating-point exponents inPow.

Releases

Release notes are available inRELEASES.md.

Compatibility

Thenum-traits crate is tested for rustc 1.60 and greater.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submittedfor inclusion in the work by you, as defined in the Apache-2.0 license, shall bedual licensed as above, without any additional terms or conditions.

About

Numeric traits for generic mathematics in Rust

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp