pub fn remove_lower_nonce_txs(&mut self, nonce: u32) -> Vec<L2Transaction> {
        let mut removed = Vec::default();
        while !self.txs.is_empty() {
            let tx_nonce: u32 = self.txs[0].raw().nonce().unpack();
            if tx_nonce >= nonce {
                break;
            }
            removed.push(self.txs.remove(0));
        }
        removed
    }
// remove and return txs which tx.nonce is lower than nonce
remove and return txs which tx.nonce is lower than nonce
remove and return txs which tx . nonce is lower than nonce
pub fn remove_lower_nonce_txs(&mut self, nonce: u32) -> Vec<L2Transaction> {
        let mut removed = Vec::default();
        while !self.txs.is_empty() {
            let tx_nonce: u32 = self.txs[0].raw().nonce().unpack();
            if tx_nonce >= nonce {
                break;
            }
            removed.push(self.txs.remove(0));
        }
        removed
    }
pub fn remove_lower_nonce_txs ( & mut self , nonce : u32 ) -> Vec < L2Transaction > { let mut removed = Vec :: default ( ) ; while ! self . txs . is_empty ( ) { let tx_nonce : u32 = self . txs [ 0 ] . raw ( ) . nonce ( ) . unpack ( ) ; if tx_nonce >= nonce { break ; } removed . push ( self . txs . remove ( 0 ) ) ; } removed }
remove and return txs which tx.nonce is lower than nonce
remove and return txs which tx . nonce is lower than nonce
&mut self
nonce
u32
&mut self
nonce
u32