diff --git a/src/notification/group.rs b/src/notification/group.rs index 386e67f..442ceab 100644 --- a/src/notification/group.rs +++ b/src/notification/group.rs @@ -32,6 +32,15 @@ impl NotificationGroup { self.elements.push(n); } + /// + /// + /// + pub fn pull(&mut self) -> Vec { + self.pulled_elements = self.elements.clone(); + self.elements.clear(); + self.pulled_elements.clone() + } + /// /// ///