File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -98,12 +98,18 @@ impl<T: TotalOrd> PriorityQueue<T> {
98
98
item
99
99
}
100
100
101
+ #[ deprecated="renamed to `into_vec`" ]
102
+ fn to_vec ( self ) -> Vec < T > { self . into_vec ( ) }
103
+
104
+ #[ deprecated="renamed to `into_sorted_vec`" ]
105
+ fn to_sorted_vec ( self ) -> Vec < T > { self . into_sorted_vec ( ) }
106
+
101
107
/// Consume the PriorityQueue and return the underlying vector
102
- pub fn to_vec ( self ) -> Vec < T > { let PriorityQueue { data : v} = self ; v }
108
+ pub fn into_vec ( self ) -> Vec < T > { let PriorityQueue { data : v} = self ; v }
103
109
104
110
/// Consume the PriorityQueue and return a vector in sorted
105
111
/// (ascending) order
106
- pub fn to_sorted_vec ( self ) -> Vec < T > {
112
+ pub fn into_sorted_vec ( self ) -> Vec < T > {
107
113
let mut q = self ;
108
114
let mut end = q. len ( ) ;
109
115
while end > 1 {
You can’t perform that action at this time.
0 commit comments