1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::CommonPatData;

#[repr(C)]
#[derive(Debug)]
pub struct RestPat<'ast> {
    data: CommonPatData<'ast>,
}

super::impl_pat_data!(RestPat<'ast>, Rest);

#[cfg(feature = "driver-api")]
impl<'ast> RestPat<'ast> {
    pub fn new(data: CommonPatData<'ast>) -> Self {
        Self { data }
    }
}