1 #![allow(incomplete_features)]
3 #![feature(adt_const_params)]
7 #[derive(PartialEq, Eq)]
13 // @has foo/struct.VSet.html '//pre[@class="rust struct"]' 'pub struct VSet<T, const ORDER: Order>'
14 // @has foo/struct.VSet.html '//div[@id="impl-Send"]/h3[@class="code-header in-band"]' 'impl<T, const ORDER: Order> Send for VSet<T, ORDER>'
15 // @has foo/struct.VSet.html '//div[@id="impl-Sync"]/h3[@class="code-header in-band"]' 'impl<T, const ORDER: Order> Sync for VSet<T, ORDER>'
16 pub struct VSet<T, const ORDER: Order> {
20 // @has foo/struct.VSet.html '//div[@id="impl"]/h3[@class="code-header in-band"]' 'impl<T> VSet<T, { Order::Sorted }>'
21 impl<T> VSet<T, { Order::Sorted }> {
22 pub fn new() -> Self {
23 Self { inner: Vec::new() }
27 // @has foo/struct.VSet.html '//div[@id="impl-1"]/h3[@class="code-header in-band"]' 'impl<T> VSet<T, { Order::Unsorted }>'
28 impl<T> VSet<T, { Order::Unsorted }> {
29 pub fn new() -> Self {
30 Self { inner: Vec::new() }
34 pub struct Escape<const S: &'static str>;
36 // @has foo/struct.Escape.html '//div[@id="impl"]/h3[@class="code-header in-band"]' 'impl Escape<r#"<script>alert("Escape");</script>"#>'
37 impl Escape<r#"<script>alert("Escape");</script>"#> {