add more inline directives to dvec

This commit is contained in:
Niko Matsakis 2012-05-15 13:41:15 -07:00
parent 7905b79156
commit d1cde18af3

View File

@ -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];