pub fn interpolate_addr(&self, dest: &Self, dest_bits: u8) -> Self {
        if dest_bits == 0 {
            self.clone()
        } else if dest_bits >= FULL_BITS {
            dest.clone()
        } else if dest_bits >= 32 {
            let mask = u64::max_value() >> (dest_bits - 32);
            Self {
                workchain_id: dest.workchain_id,
                prefix: (dest.prefix & !mask) | (self.prefix & mask)
            }
        } else {
            let mask = u32::max_value() >> dest_bits;
            Self {
                workchain_id: (dest.workchain_id & (!mask as i32)) | (self.workchain_id & (mask as i32)),
                prefix: self.prefix
            }
        }
    }
/// Combines dest_bits bits from dest, remaining 64 - dest_bits bits from self
Combines dest_bits bits from dest, remaining 64 - dest_bits bits from self
Combines dest_bits bits from dest remaining 64 - dest_bits bits from self
pub fn interpolate_addr(&self, dest: &Self, dest_bits: u8) -> Self {
        if dest_bits == 0 {
            self.clone()
        } else if dest_bits >= FULL_BITS {
            dest.clone()
        } else if dest_bits >= 32 {
            let mask = u64::max_value() >> (dest_bits - 32);
            Self {
                workchain_id: dest.workchain_id,
                prefix: (dest.prefix & !mask) | (self.prefix & mask)
            }
        } else {
            let mask = u32::max_value() >> dest_bits;
            Self {
                workchain_id: (dest.workchain_id & (!mask as i32)) | (self.workchain_id & (mask as i32)),
                prefix: self.prefix
            }
        }
    }
pub fn interpolate_addr ( & self , dest : & Self , dest_bits : u8 ) -> Self { if dest_bits == 0 { self . clone ( ) } else if dest_bits >= FULL_BITS { dest . clone ( ) } else if dest_bits >= 32 { let mask = u64 :: max_value ( ) >> ( dest_bits - 32 ) ; Self { workchain_id : dest . workchain_id , prefix : ( dest . prefix & ! mask ) | ( self . prefix & mask ) } } else { let mask = u32 :: max_value ( ) >> dest_bits ; Self { workchain_id : ( dest . workchain_id & ( ! mask as i32 ) ) | ( self . workchain_id & ( mask as i32 ) ) , prefix : self . prefix } } }
Combines dest_bits bits from dest, remaining 64 - dest_bits bits from self
Combines dest_bits bits from dest remaining 64 - dest_bits bits from self
&self
dest
&Self
dest_bits
u8
&self
dest
&Self
dest_bits
u8