1 // ignore-tidy-linelength
3 #![feature(const_generics)]
12 // @has foo/struct.VSet.html '//pre[@class="rust struct"]' 'pub struct VSet<T, const ORDER: Order>'
13 // @has foo/struct.VSet.html '//h3[@id="impl-Send"]/code' 'impl<const ORDER: Order, T> Send for VSet<T, ORDER>'
14 // @has foo/struct.VSet.html '//h3[@id="impl-Sync"]/code' 'impl<const ORDER: Order, T> Sync for VSet<T, ORDER>'
15 pub struct VSet<T, const ORDER: Order> {
19 // @has foo/struct.VSet.html '//h3[@id="impl"]/code' 'impl<T> VSet<T, { Order::Sorted }>'
20 impl <T> VSet<T, {Order::Sorted}> {
21 pub fn new() -> Self {
22 Self { inner: Vec::new() }
26 // @has foo/struct.VSet.html '//h3[@id="impl-1"]/code' 'impl<T> VSet<T, { Order::Unsorted }>'
27 impl <T> VSet<T, {Order::Unsorted}> {
28 pub fn new() -> Self {
29 Self { inner: Vec::new() }