summaryrefslogtreecommitdiff
path: root/src/mass.rs
blob: d1f9d3e462d73e53815def281ce08f91d9ccf6ae (plain)
1
2
3
4
5
6
7
pub trait Mass {
    fn new(name : &str, location : (isize, isize, isize)) -> Self where Self: Sized;
    fn get_name(&self) -> &String;
    fn get_location(&self) -> (isize, isize, isize);
    fn give_location(&mut self, location : (isize, isize, isize));
    fn serialize(&self) -> String;
}