Return membership with one directly named change removed.
(&self, change_id: impl Borrow<NodeId>)
| 67 | |
| 68 | /// Return membership with one directly named change removed. |
| 69 | pub fn without(&self, change_id: impl Borrow<NodeId>) -> Self { |
| 70 | let change_id = change_id.borrow(); |
| 71 | Self::from_ordered( |
| 72 | self.ordered |
| 73 | .iter() |
| 74 | .copied() |
| 75 | .filter(|candidate| candidate != change_id), |
| 76 | ) |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | #[derive(Debug, PartialEq, Eq)] |