File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 4848 }
4949 }
5050
51- /// Add an item to this [`SetOf`].
52- ///
53- /// Items MUST be added in lexicographical order according to the [`DerOrd`] impl on `T`.
54- ///
55- /// # Errors
56- /// If items are added out-of-order or there isn't sufficient space.
57- #[ deprecated( since = "0.7.6" , note = "use `insert` or `insert_ordered` instead" ) ]
58- pub fn add ( & mut self , new_elem : T ) -> Result < ( ) , Error > {
59- self . insert_ordered ( new_elem)
60- }
61-
6251 /// Insert an item into this [`SetOf`].
6352 ///
6453 /// # Errors
@@ -297,18 +286,6 @@ where
297286 Vec :: from_iter ( iter) . try_into ( )
298287 }
299288
300- /// Add an element to this [`SetOfVec`].
301- ///
302- /// Items MUST be added in lexicographical order according to the
303- /// [`DerOrd`] impl on `T`.
304- ///
305- /// # Errors
306- /// If a sorting error occurred.
307- #[ deprecated( since = "0.7.6" , note = "use `insert` or `insert_ordered` instead" ) ]
308- pub fn add ( & mut self , item : T ) -> Result < ( ) , Error > {
309- self . insert_ordered ( item)
310- }
311-
312289 /// Extend a [`SetOfVec`] using an iterator.
313290 ///
314291 /// Note: this is an inherent method instead of an impl of the [`Extend`] trait in order to
You can’t perform that action at this time.
0 commit comments