pub fn add_offset(&self, offset: Offset) -> Self {
        let mut extended_aps: AbsAddr = AbsAddr::default();
        for p in self.iter() {
            match p {
                Addr::Footprint(ap) => {
                    let mut extended_ap = ap.clone();
                    extended_ap.add_offset(offset.clone());
                    extended_aps.insert(Addr::Footprint(extended_ap));
                }
                Addr::Constant(c) => {
                    panic!(
                        "Type error: address constant {:?} as base for offset {:?}",
                        c, offset
                    )
                }
            }
        }
        extended_aps
    }
/// Return a new abstract address by adding the offset `offset` to each element of `self`
Return a new abstract address by adding the offset `offset` to each element of `self`
Return a new abstract address by adding the offset ` offset ` to each element of ` self `
pub fn add_offset(&self, offset: Offset) -> Self {
        let mut extended_aps: AbsAddr = AbsAddr::default();
        for p in self.iter() {
            match p {
                Addr::Footprint(ap) => {
                    let mut extended_ap = ap.clone();
                    extended_ap.add_offset(offset.clone());
                    extended_aps.insert(Addr::Footprint(extended_ap));
                }
                Addr::Constant(c) => {
                    panic!(
                        "Type error: address constant {:?} as base for offset {:?}",
                        c, offset
                    )
                }
            }
        }
        extended_aps
    }
pub fn add_offset ( & self , offset : Offset ) -> Self { let mut extended_aps : AbsAddr = AbsAddr :: default ( ) ; for p in self . iter ( ) { match p { Addr :: Footprint ( ap ) => { let mut extended_ap = ap . clone ( ) ; extended_ap . add_offset ( offset . clone ( ) ) ; extended_aps . insert ( Addr :: Footprint ( extended_ap ) ) ; } Addr :: Constant ( c ) => { panic ! ( " " c offset ) } } } extended_aps }
Return a new abstract address by adding the offset `offset` to each element of `self`
Return a new abstract address by adding the offset ` offset ` to each element of ` self `
&self
offset
Offset