mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
commit
83d9ab3ba5
13 changed files with 103 additions and 97 deletions
|
@ -25,6 +25,15 @@ impl RangeIndex for isize {
|
|||
fn get(self) -> isize { self }
|
||||
}
|
||||
|
||||
impl RangeIndex for usize {
|
||||
type Index = usize;
|
||||
#[inline]
|
||||
fn new(x: usize) -> usize { x }
|
||||
|
||||
#[inline]
|
||||
fn get(self) -> usize { self }
|
||||
}
|
||||
|
||||
/// Implements a range index type with operator overloads
|
||||
#[macro_export]
|
||||
macro_rules! int_range_index {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue