pub fn insert(&mut self, key_type: u8, new: KVPredicate) {
        let existing = self.0.remove(&key_type);
        let updated: KVPredicate = match existing {
            Some(predicate) => Box::new(move |k: &PSBTKey, v: &PSBTValue| {
                predicate(k, v)?;
                new(k, v)
            }),
            None => new,
        };
        self.0.insert(key_type, updated);
    }
/// Insert a predicate into the map. This creates a composition with any predicate already in
/// the map. Which is to say, multiple inserts at the same key additive. They are ALL
/// enforced.
///
/// Custom schemas can be built manually, or made by getting the standard schema for a type
/// and then updating it.
Insert a predicate into the map. This creates a composition with any predicate already in
the map. Which is to say, multiple inserts at the same key additive. They are ALL
enforced.

Custom schemas can be built manually, or made by getting the standard schema for a type
and then updating it.
Insert a predicate into the map . This creates a composition with any predicate already in the map . Which is to say multiple inserts at the same key additive . They are ALL enforced . Custom schemas can be built manually or made by getting the standard schema for a type and then updating it .
pub fn insert(&mut self, key_type: u8, new: KVPredicate) {
        let existing = self.0.remove(&key_type);
        let updated: KVPredicate = match existing {
            Some(predicate) => Box::new(move |k: &PSBTKey, v: &PSBTValue| {
                predicate(k, v)?;
                new(k, v)
            }),
            None => new,
        };
        self.0.insert(key_type, updated);
    }
pub fn insert ( & mut self , key_type : u8 , new : KVPredicate ) { let existing = self . 0 . remove ( & key_type ) ; let updated : KVPredicate = match existing { Some ( predicate ) => Box :: new ( move | k : & PSBTKey , v : & PSBTValue | { predicate ( k , v ) ? ; new ( k , v ) } ) , None => new , } ; self . 0 . insert ( key_type , updated ) ; }
Insert a predicate into the map.
Insert a predicate into the map .
&mut self
key_type
u8
new
KVPredicate
&mut self
key_type
u8
new
KVPredicate