SAT boundaries for multi-thread fixing

This commit is contained in:
2021-08-21 09:29:45 +00:00
parent d2c811d3af
commit d0901f5755
3 changed files with 140 additions and 178 deletions

View File

@@ -63,6 +63,18 @@ impl<T> Direction<T> {
west: self.east,
}
}
pub fn splat(t: T) -> Self
where
T: Copy,
{
Self {
north: t,
south: t,
east: t,
west: t,
}
}
}
impl<T> Direction<Option<T>> {