Last active
March 5, 2017 17:36
-
-
Save ALSchwalm/d56ccd574a3b517ad20a7c6e5dc3f3f8 to your computer and use it in GitHub Desktop.
This file contains 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 characters
struct CloningLab { | |
subjects: Vec<Box<Mammal + Clone>>, | |
} | |
impl CloningLab { | |
fn clone_subjects(&self) -> Vec<Box<Mammal + Clone>> { | |
self.subjects.clone() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment