1
Fork 0

auto merge of #12491 : eddyb/rust/deref, r=nikomatsakis

Add the `Deref` and `DerefMut` traits and implement overloading explicit dereferences.
This commit is contained in:
bors 2014-03-04 23:21:42 -08:00
commit 87a31f6f0f
19 changed files with 520 additions and 138 deletions

View file

@ -23,7 +23,7 @@ generally useful to many Rust programs.
pub use kinds::{Freeze, Pod, Send, Sized};
pub use ops::{Add, Sub, Mul, Div, Rem, Neg, Not};
pub use ops::{BitAnd, BitOr, BitXor};
pub use ops::{Drop};
pub use ops::{Drop, Deref, DerefMut};
pub use ops::{Shl, Shr, Index};
pub use option::{Option, Some, None};
pub use result::{Result, Ok, Err};