pub struct RoadMarkingBook<'a> { /* private fields */ }Expand description
Interface for accessing RoadMarkings in the road network.
Implementations§
Source§impl<'a> RoadMarkingBook<'a>
impl<'a> RoadMarkingBook<'a>
Sourcepub fn road_markings(&self) -> Vec<RoadMarking<'_>>
pub fn road_markings(&self) -> Vec<RoadMarking<'_>>
Returns all RoadMarkings in the book.
Sourcepub fn get_road_marking(&self, id: &String) -> Option<RoadMarking<'_>>
pub fn get_road_marking(&self, id: &String) -> Option<RoadMarking<'_>>
Returns the RoadMarking with the given id, or None if not found.
Sourcepub fn find_by_lane(&self, lane_id: &String) -> Vec<RoadMarking<'_>>
pub fn find_by_lane(&self, lane_id: &String) -> Vec<RoadMarking<'_>>
Returns all RoadMarkings whose related_lanes() includes the given lane ID.
Sourcepub fn find_by_type(
&self,
marking_type: &RoadMarkingType,
) -> Vec<RoadMarking<'_>>
pub fn find_by_type( &self, marking_type: &RoadMarkingType, ) -> Vec<RoadMarking<'_>>
Returns all RoadMarkings of the given RoadMarkingType.
Auto Trait Implementations§
impl<'a> !Send for RoadMarkingBook<'a>
impl<'a> !Sync for RoadMarkingBook<'a>
impl<'a> Freeze for RoadMarkingBook<'a>
impl<'a> RefUnwindSafe for RoadMarkingBook<'a>
impl<'a> Unpin for RoadMarkingBook<'a>
impl<'a> UnsafeUnpin for RoadMarkingBook<'a>
impl<'a> UnwindSafe for RoadMarkingBook<'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