pub fn to_string(&self) -> String {
        use self::SafasNumber::*;

        match self {
            Plain(val)              => val.to_string(),
            BitNumber(bits, num)    => {
                if *bits < 8 {
                    format!("{}b{}", radix(*num as u8, 2), bits)
                } else {
                    format!("${}u{}", radix(*num, 16), bits)
                }
            },

            SignedBitNumber(bits, num)  => {
                format!("{}i{}", *num, *bits)
            }
        }
    }
///
/// Converts this number to a string representation
///
Converts this number to a string representation
Converts this number to a string representation
pub fn to_string(&self) -> String {
        use self::SafasNumber::*;
        match self {
            Plain(val)              => val.to_string(),
            BitNumber(bits, num)    => {
                if *bits < 8 {
                    format!("{}b{}", radix(*num as u8, 2), bits)
                } else {
                    format!("${}u{}", radix(*num, 16), bits)
                }
            },
            SignedBitNumber(bits, num)  => {
                format!("{}i{}", *num, *bits)
            }
        }
    }
pub fn to_string ( & self ) -> String { use self :: SafasNumber :: * ; match self { Plain ( val ) => val . to_string ( ) , BitNumber ( bits , num ) => { if * bits < 8 { format ! ( " " radix ( num as u8 2 ) bits ) } else { format ! ( " " radix ( num 16 ) bits ) } } , SignedBitNumber ( bits , num ) => { format ! ( " " num bits ) } } }
Converts this number to a string representation
Converts this number to a string representation
&self
&self