pub struct Hazard {
pub entity: HazardEntity,
pub shape: SPolygon,
pub dynamic: bool,
}Expand description
Any spatial constraint affecting the feasibility of a placement of an Item.
See HazardEntity for the different entities that can induce a hazard.
Fields§
§entity: HazardEntityThe entity inducing the hazard
shape: SPolygonThe shape of the hazard
dynamic: boolWhether the hazard is dynamic, meaning it can change over time (e.g., moving items)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hazard
impl RefUnwindSafe for Hazard
impl Send for Hazard
impl Sync for Hazard
impl Unpin for Hazard
impl UnwindSafe for Hazard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more