Instead of destructor methods you implement the Drop trait. Instead of a single data field on a Struct, you implement Deref and DerefMut. Instead of a size property we implement the .len() method (and as suggested: .is_empty()). We replace .index with .position(). Consistency
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
-
oh yay, thanks! - will watch :D
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.