diff --git a/src/number.rs b/src/number.rs index 776e432..5d1692a 100644 --- a/src/number.rs +++ b/src/number.rs @@ -1,5 +1,3 @@ -use std::{u8, u16, u32, u64, usize}; -use std::{i8, i16, i32, i64, isize}; use std::cmp::PartialEq; use std::mem::size_of; use std::num::{Zero, One}; @@ -18,10 +16,6 @@ pub trait Number : Zero + One + Add + Sub + type StrRadixError; - /// The amount of Bytes required to represent this Number. - const BYTES: usize; - - /// Create a number from a given string and base radix. /// ///``` @@ -757,9 +751,6 @@ macro_rules! int_number_trait_impl type StrRadixError = ::std::num::ParseIntError; - const BYTES: usize = <$varType>::BYTES; - - fn from_str_radix(src: &str, radix: u32) -> Result { @@ -780,9 +771,6 @@ macro_rules! float_number_trait_impl type StrRadixError = ::std::num::ParseFloatError; - const BYTES: usize = $numBytes; - - fn from_str_radix(src: &str, radix: u32) -> Result {