Skip to content

Instantly share code, notes, and snippets.

@ALSchwalm
Last active March 5, 2017 17:36
Show Gist options
  • Save ALSchwalm/d56ccd574a3b517ad20a7c6e5dc3f3f8 to your computer and use it in GitHub Desktop.
Save ALSchwalm/d56ccd574a3b517ad20a7c6e5dc3f3f8 to your computer and use it in GitHub Desktop.
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