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