fn index(&self, index: &Index) -> Result;
}
-/// Dummy dox
-#[cfg(stage0)]
-pub trait Deref<Result> {
- /// dummy dox
- fn deref<'a>(&'a self) -> &'a Result;
-}
-
/**
*
* The `Deref` trait is used to specify the functionality of dereferencing
* }
* ```
*/
-#[cfg(not(stage0))]
#[lang="deref"]
pub trait Deref<Result> {
/// The method called to dereference a value
fn deref<'a>(&'a self) -> &'a Result;
}
-/// dummy dox
-#[cfg(stage0)]
-pub trait DerefMut<Result>: Deref<Result> {
- /// dummy dox
- fn deref_mut<'a>(&'a mut self) -> &'a mut Result;
-}
-
/**
*
* The `DerefMut` trait is used to specify the functionality of dereferencing
* }
* ```
*/
-#[cfg(not(stage0))]
#[lang="deref_mut"]
pub trait DerefMut<Result>: Deref<Result> {
/// The method called to mutably dereference a value