SAT boundaries for multi-thread fixing
This commit is contained in:
1 parent
d2c811d3af
commit
d0901f5755
3 files changed
+140
-178
No files matched your search
@@ -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>> {
|
||||
|
||||
Reference in new issue
Block a user