mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
New town layouts, initial progress
This commit is contained in:
@ -32,6 +32,15 @@ impl<T> FromIterator<T> for Path<T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> IntoIterator for Path<T> {
|
||||
type Item = T;
|
||||
type IntoIter = std::vec::IntoIter<T>;
|
||||
|
||||
fn into_iter(self) -> Self::IntoIter {
|
||||
self.nodes.into_iter()
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Path<T> {
|
||||
pub fn is_empty(&self) -> bool { self.nodes.is_empty() }
|
||||
|
||||
|
Reference in New Issue
Block a user