SAT boundaries for multi-thread fixing

This commit is contained in:
mulimoen committed 2021-08-21 09:29:45 +00:00
1 parent d2c811d3af
commit d0901f5755
3 files changed
+140 -178

No files matched your search

+12
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>> {