about summary refs log tree commit diff
path: root/src/libcore/clone.rs
blob: 8e180ff34140cd7e7afead0cadab6d28b2665e06 (plain)
1
2
3
4
5
6
7
8
9
10
/**
Clonable types are copied with the clone method
*/
pub trait Clone {
    fn clone(&self) -> self;
}

impl (): Clone {
    fn clone(&self) -> () { () }
}