pub fn contains(&self, id: &ID) -> bool {

    // current pos eqls to compared id
    if self.pos == *id {
        return true;
    }

    // if path contains on some place the id, then will return the result
    match self.path {
        Some(ref p) => p.contains(id),
        None=> false,
    }
  }
// impl of contains for Route<ID>, return a bool with result
impl of contains for Route, return a bool with result
impl of contains for Route return a bool with result
pub fn contains(&self, id: &ID) -> bool {
    // current pos eqls to compared id
    if self.pos == *id {
        return true;
    }
    // if path contains on some place the id, then will return the result
    match self.path {
        Some(ref p) => p.contains(id),
        None=> false,
    }
  }
pub fn contains ( & self , id : & ID ) -> bool { // current pos eqls to compared id if self . pos == * id { return true ; } // if path contains on some place the id, then will return the result match self . path { Some ( ref p ) => p . contains ( id ) , None => false , } }
impl of contains for Route<ID>, return a bool with result
impl of contains for Route<ID > return a bool with result
&self
id
&ID
&self
id
&ID