24 lines
411 B
Rust
24 lines
411 B
Rust
|
#![forbid(unsafe_code)]
|
||
|
|
||
|
pub mod bigint;
|
||
|
pub mod rational;
|
||
|
pub mod seq;
|
||
|
|
||
|
/// Dummy trait for implementing generics on unsigned number types
|
||
|
pub trait Unsigned {}
|
||
|
|
||
|
impl Unsigned for u8 {}
|
||
|
impl Unsigned for u16 {}
|
||
|
impl Unsigned for u32 {}
|
||
|
impl Unsigned for u64 {}
|
||
|
impl Unsigned for usize {}
|
||
|
impl Unsigned for u128 {}
|
||
|
|
||
|
#[cfg(test)]
|
||
|
mod tests {
|
||
|
#[test]
|
||
|
fn it_works() {
|
||
|
assert_eq!(2 + 2, 4);
|
||
|
}
|
||
|
}
|