1 // ignore-tidy-linelength
3 #![feature(const_generics)]
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 '//h3[@id="impl-Send"]/code' 'impl<const ORDER: Order, T> Send for VSet<T, ORDER>'
15 // @has foo/struct.VSet.html '//h3[@id="impl-Sync"]/code' 'impl<const ORDER: Order, T> Sync for VSet<T, ORDER>'
16 pub struct VSet<T, const ORDER: Order> {
20 // @has foo/struct.VSet.html '//h3[@id="impl"]/code' '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 '//h3[@id="impl-1"]/code' '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 '//h3[@id="impl"]/code' 'impl Escape<{ r#"<script>alert("Escape");</script>"# }>'
37 impl Escape<{ r#"<script>alert("Escape");</script>"# }> {