Created
July 1, 2019 02:54
-
-
Save stivenson/c6d2b44aff607bd0cf26acc0f2eb73eb to your computer and use it in GitHub Desktop.
Revisions
-
stivenson created this gist
Jul 1, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ // other Code ... trait Travel { fn new(destination: &'static str) -> Self; fn go(&self) -> &'static str; } impl Travel for Man { fn new(destination: &'static str) -> Man { // logic ... } fn go(&self) -> &'static str { // logic ... } }