2015-12-16 17:44:15 +00:00
|
|
|
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
|
|
|
//! Rusty Mathematics
|
|
|
|
//!
|
|
|
|
//! # Note
|
|
|
|
//!
|
|
|
|
//! This API is completely unstable and subject to change.
|
|
|
|
|
|
|
|
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
|
|
|
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
|
|
|
|
html_root_url = "https://doc.rust-lang.org/nightly/")]
|
2017-02-15 13:00:20 +00:00
|
|
|
#![deny(warnings)]
|
2015-12-16 17:44:15 +00:00
|
|
|
|
2017-02-01 23:57:50 +00:00
|
|
|
#![feature(i128)]
|
|
|
|
#![feature(i128_type)]
|
2015-12-16 17:44:15 +00:00
|
|
|
|
2017-09-08 18:26:54 +00:00
|
|
|
#![cfg_attr(stage0, feature(const_fn))]
|
|
|
|
#![cfg_attr(not(stage0), feature(const_min_value))]
|
|
|
|
#![cfg_attr(not(stage0), feature(const_max_value))]
|
|
|
|
|
2017-07-30 04:32:11 +00:00
|
|
|
extern crate rustc_apfloat;
|
|
|
|
|
2017-01-14 08:58:50 +00:00
|
|
|
extern crate syntax;
|
2015-12-16 17:44:15 +00:00
|
|
|
|
|
|
|
extern crate serialize as rustc_serialize; // used by deriving
|
|
|
|
|
2016-06-01 09:22:07 +00:00
|
|
|
mod float;
|
2015-12-16 17:44:15 +00:00
|
|
|
mod int;
|
|
|
|
mod us;
|
|
|
|
mod is;
|
|
|
|
mod err;
|
|
|
|
|
2016-06-01 09:22:07 +00:00
|
|
|
pub use float::*;
|
2015-12-16 17:44:15 +00:00
|
|
|
pub use int::*;
|
|
|
|
pub use us::*;
|
|
|
|
pub use is::*;
|
2016-04-26 12:10:07 +00:00
|
|
|
pub use err::{ConstMathErr, Op};
|