pub fn from_decimal_string(s: &str, bits: usize) -> Result<Constant> {
        let constant = Constant::new_big(s.parse()?, bits);
        Ok(match constant.bits().cmp(&bits) {
            Ordering::Less => constant.zext(bits)?,
            Ordering::Greater => constant.trun(bits)?,
            Ordering::Equal => constant,
        })
    }
/// Crates a constant from a decimal string of the value
Crates a constant from a decimal string of the value
Crates a constant from a decimal string of the value
pub fn from_decimal_string(s: &str, bits: usize) -> Result<Constant> {
        let constant = Constant::new_big(s.parse()?, bits);
        Ok(match constant.bits().cmp(&bits) {
            Ordering::Less => constant.zext(bits)?,
            Ordering::Greater => constant.trun(bits)?,
            Ordering::Equal => constant,
        })
    }
pub fn from_decimal_string ( s : & str , bits : usize ) -> Result < Constant > { let constant = Constant :: new_big ( s . parse ( ) ? , bits ) ; Ok ( match constant . bits ( ) . cmp ( & bits ) { Ordering :: Less => constant . zext ( bits ) ? , Ordering :: Greater => constant . trun ( bits ) ? , Ordering :: Equal => constant , } ) }
Crates a constant from a decimal string of the value
Crates a constant from a decimal string of the value
s
&str
bits
usize
s
&str
bits
usize