dope-sys 0.39.0

Typed operating-system call contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::table::change::Filter;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct Index<I> {
    index: I,
    filter: Filter,
}

impl<I> Index<I> {
    pub fn new(index: I, filter: Filter) -> Self {
        Self { index, filter }
    }

    pub fn into_parts(self) -> (I, Filter) {
        (self.index, self.filter)
    }
}