index_from_end/
lib.rs

1mod ops;
2mod default_implementors;
3mod into_index;
4
5pub use into_index::IntoIndex;
6
7///Unit struct abstractly representing the length of a sequence.
8#[derive(Copy, Clone, PartialEq, Eq, Hash)]
9pub struct Len;
10
11#[derive(Copy, Clone, PartialEq, Eq, Hash)]
12pub struct FromEnd {
13    pub dist: usize
14}
15
16#[derive(Copy, Clone, PartialEq, Eq, Hash)]
17pub struct LenMul {
18    number: usize
19}
20
21#[derive(Copy, Clone, PartialEq, Eq, Hash)]
22pub struct LenFrac {
23    numer: usize,
24    denom: usize
25}
26
27#[derive(Copy, Clone, PartialEq, Eq, Hash)]
28pub struct FromFrac {
29    offset: isize,
30    numer: usize,
31    denom: usize
32}
33
34
35
36
37
38