From 04e744fb0f0df24fdaba4035b8ed0160d011f5c6 Mon Sep 17 00:00:00 2001 From: Jason Travis Smith Date: Wed, 6 Jan 2016 03:14:58 -0500 Subject: [PATCH] Removing the recent addition of Number::BYTES. This really does not have anything to do with a Number. This has to deal with the byte representation of certain types and as such it should really live in the Alchemy crate. --- src/number.rs | 12 ------------ 1 file changed, 12 deletions(-) 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 {