pub fn borrowed_nonces_for_field(
        &self,
        idx: FieldDefinitionIndex,
        nonce: Nonce,
    ) -> BTreeSet<Nonce> {
        if self.borrows.contains_key(&nonce) {
            match &self.borrows[&nonce] {
                BorrowInfo::BorrowedBy(borrowed_by) => borrowed_by.clone(),
                BorrowInfo::FieldsBorrowedBy(fields_borrowed_by) => {
                    if fields_borrowed_by.contains_key(&idx) {
                        fields_borrowed_by[&idx].clone()
                    } else {
                        BTreeSet::new()
                    }
                }
            }
        } else {
            BTreeSet::new()
        }
    }
/// returns the set of nonces borrowing from nonce that might alias some idx-extension of nonce
returns the set of nonces borrowing from nonce that might alias some idx-extension of nonce
returns the set of nonces borrowing from nonce that might alias some idx - extension of nonce
pub fn borrowed_nonces_for_field(
        &self,
        idx: FieldDefinitionIndex,
        nonce: Nonce,
    ) -> BTreeSet<Nonce> {
        if self.borrows.contains_key(&nonce) {
            match &self.borrows[&nonce] {
                BorrowInfo::BorrowedBy(borrowed_by) => borrowed_by.clone(),
                BorrowInfo::FieldsBorrowedBy(fields_borrowed_by) => {
                    if fields_borrowed_by.contains_key(&idx) {
                        fields_borrowed_by[&idx].clone()
                    } else {
                        BTreeSet::new()
                    }
                }
            }
        } else {
            BTreeSet::new()
        }
    }
pub fn borrowed_nonces_for_field ( & self , idx : FieldDefinitionIndex , nonce : Nonce , ) -> BTreeSet < Nonce > { if self . borrows . contains_key ( & nonce ) { match & self . borrows [ & nonce ] { BorrowInfo :: BorrowedBy ( borrowed_by ) => borrowed_by . clone ( ) , BorrowInfo :: FieldsBorrowedBy ( fields_borrowed_by ) => { if fields_borrowed_by . contains_key ( & idx ) { fields_borrowed_by [ & idx ] . clone ( ) } else { BTreeSet :: new ( ) } } } } else { BTreeSet :: new ( ) } }
returns the set of nonces borrowing from nonce that might alias some idx-extension of nonce
returns the set of nonces borrowing from nonce that might alias some idx - extension of nonce
&self
idx
FieldDefinitionIndex
nonce
Nonce