pub fn bits(&self) -> u8 {
        use self::SafasNumber::*;

        match self {
            Plain(num)                  => {
                for bits in 0..128 {
                    if &(1u128<<bits) > num {
                        return bits;
                    }
                }

                return 128;
            },
            BitNumber(bits, _num)       => *bits,
            SignedBitNumber(bits, _num) => *bits
        }
    }
///
/// Returns the 'bits' value for this number
///
Returns the 'bits' value for this number
Returns the ' bits ' value for this number
pub fn bits(&self) -> u8 {
        use self::SafasNumber::*;
        match self {
            Plain(num)                  => {
                for bits in 0..128 {
                    if &(1u128<<bits) > num {
                        return bits;
                    }
                }
                return 128;
            },
            BitNumber(bits, _num)       => *bits,
            SignedBitNumber(bits, _num) => *bits
        }
    }
pub fn bits ( & self ) -> u8 { use self :: SafasNumber :: * ; match self { Plain ( num ) => { for bits in 0 .. 128 { if & ( 1u128 << bits ) > num { return bits ; } } return 128 ; } , BitNumber ( bits , _num ) => * bits , SignedBitNumber ( bits , _num ) => * bits } }
Returns the 'bits' value for this number
Returns the ' bits ' value for this number
&self
&self