pub enum StaticObstacle {
Segment {
layer: SpatialLayerId,
start: Position2,
end: Position2,
},
Polygon {
layer: SpatialLayerId,
exterior: Vec<Position2>,
holes: Vec<Vec<Position2>>,
},
}Variants§
Trait Implementations§
Source§impl Clone for StaticObstacle
impl Clone for StaticObstacle
Source§fn clone(&self) -> StaticObstacle
fn clone(&self) -> StaticObstacle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StaticObstacle
impl Debug for StaticObstacle
Source§impl<'de> Deserialize<'de> for StaticObstacle
impl<'de> Deserialize<'de> for StaticObstacle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StaticObstacle
impl PartialEq for StaticObstacle
Source§impl Serialize for StaticObstacle
impl Serialize for StaticObstacle
impl StructuralPartialEq for StaticObstacle
Auto Trait Implementations§
impl Freeze for StaticObstacle
impl RefUnwindSafe for StaticObstacle
impl Send for StaticObstacle
impl Sync for StaticObstacle
impl Unpin for StaticObstacle
impl UnsafeUnpin for StaticObstacle
impl UnwindSafe for StaticObstacle
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