add more inline directives to dvec
This commit is contained in:
parent
7905b79156
commit
d1cde18af3
@ -212,13 +212,13 @@ impl extensions<A:copy> for dvec<A> {
|
||||
}
|
||||
|
||||
#[doc = "Copy out an individual element"]
|
||||
#[inline]
|
||||
#[inline(always)]
|
||||
fn [](idx: uint) -> A {
|
||||
self.get_elt(idx)
|
||||
}
|
||||
|
||||
#[doc = "Copy out an individual element"]
|
||||
#[inline]
|
||||
#[inline(always)]
|
||||
fn get_elt(idx: uint) -> A {
|
||||
self.check_not_borrowed();
|
||||
ret self.data[idx];
|
||||
|
Loading…
Reference in New Issue
Block a user