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:
commit
87a31f6f0f
19 changed files with 520 additions and 138 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue