pub struct VehicleObstacle<'a> {
pub id: u64,
pub vehicle: &'a Vehicle,
pub z: f64,
}Expand description
Thin obstacle adapter for a rustsim_vehicle::Vehicle.
Fields§
§id: u64Stable identifier supplied by the hosting simulation.
vehicle: &'a VehicleVehicle state to expose as an obstacle.
z: f64Vertical coordinate to attach to the road-plane vehicle state.
Implementations§
Trait Implementations§
Source§impl Obstacle for VehicleObstacle<'_>
impl Obstacle for VehicleObstacle<'_>
Source§fn snapshot(&self) -> ObstacleSnapshot
fn snapshot(&self) -> ObstacleSnapshot
Produce an instantaneous snapshot for broadphase insertion.
Auto Trait Implementations§
impl<'a> Freeze for VehicleObstacle<'a>
impl<'a> RefUnwindSafe for VehicleObstacle<'a>
impl<'a> Send for VehicleObstacle<'a>
impl<'a> Sync for VehicleObstacle<'a>
impl<'a> Unpin for VehicleObstacle<'a>
impl<'a> UnsafeUnpin for VehicleObstacle<'a>
impl<'a> UnwindSafe for VehicleObstacle<'a>
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