pub fn as_u64(&self) -> u64 {
        let mut val: u64 = 0;
        for (index, bit) in self.vec.iter().by_ref().enumerate() {
            if *bit {
                //protects against panic in case of # less than u64::max in
                // value of width greater than 64
                val |= 1 << index;
            }
        }
        val
    }
/// Converts value into u64 type. Vector within Value can be of any width.
///
/// # Example
/// ```
/// use interp::values::*;
/// let unsign_64_16 = (Value::from(16, 16).unwrap()).as_u64();
/// ```
Converts value into u64 type. Vector within Value can be of any width.
Converts value into u64 type . Vector within Value can be of any width .
pub fn as_u64(&self) -> u64 {
        let mut val: u64 = 0;
        for (index, bit) in self.vec.iter().by_ref().enumerate() {
            if *bit {
                //protects against panic in case of # less than u64::max in
                // value of width greater than 64
                val |= 1 << index;
            }
        }
        val
    }
pub fn as_u64 ( & self ) -> u64 { let mut val : u64 = 0 ; for ( index , bit ) in self . vec . iter ( ) . by_ref ( ) . enumerate ( ) { if * bit { //protects against panic in case of # less than u64::max in // value of width greater than 64 val |= 1 << index ; } } val }
Converts value into u64 type.
Converts value into u64 type .
&self
&self
example
None