pub struct Junction<'a> { /* private fields */ }
Expand description
A Junction is a closed set of Segments which have physically coplanar road surfaces, in the sense that RoadPositions with the same h value (height above surface) in the domains of two Segments map to the same InertialPosition. The Segments need not be directly connected to one another in the network topology.
Junctions are grouped by RoadGeometry.
Wrapper around C++ implementation maliput::api::Segment
.
Implementations§
Source§impl<'a> Junction<'a>
impl<'a> Junction<'a>
Sourcepub fn road_geometry(&self) -> RoadGeometry<'_>
pub fn road_geometry(&self) -> RoadGeometry<'_>
Get the road geometry of the Junction
.
Sourcepub fn num_segments(&self) -> i32
pub fn num_segments(&self) -> i32
Get the number of segments in the Junction
.
Auto Trait Implementations§
impl<'a> Freeze for Junction<'a>
impl<'a> RefUnwindSafe for Junction<'a>
impl<'a> !Send for Junction<'a>
impl<'a> !Sync for Junction<'a>
impl<'a> Unpin for Junction<'a>
impl<'a> UnwindSafe for Junction<'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