pub struct RoadPositionResult {
pub road_position: RoadPosition,
pub nearest_position: InertialPosition,
pub distance: f64,
}
Expand description
Represents the result of a RoadPosition query.
Fields§
§road_position: RoadPosition
§nearest_position: InertialPosition
§distance: f64
Implementations§
Source§impl RoadPositionResult
impl RoadPositionResult
Sourcepub fn new(
road_position: RoadPosition,
nearest_position: InertialPosition,
distance: f64,
) -> RoadPositionResult
pub fn new( road_position: RoadPosition, nearest_position: InertialPosition, distance: f64, ) -> RoadPositionResult
Create a new RoadPositionResult
with the given road_position
, nearest_position
, and distance
.
Auto Trait Implementations§
impl Freeze for RoadPositionResult
impl RefUnwindSafe for RoadPositionResult
impl !Send for RoadPositionResult
impl !Sync for RoadPositionResult
impl Unpin for RoadPositionResult
impl UnwindSafe for RoadPositionResult
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