#[repr(transparent)]pub struct RoadMarkingType {
pub repr: i32,
}Expand description
Shared enum representing different types of road markings. This is needed to access the enum variant from Rust API since the C++ enum has an opaque implementation. The order of these variants must match with the order of the enum class defined in maliput C++ API.
Fields§
§repr: i32Implementations§
Source§impl RoadMarkingType
impl RoadMarkingType
pub const kStop: Self
pub const kStopLine: Self
pub const kCrosswalk: Self
pub const kParkingSpace: Self
pub const kEmergencyLane: Self
pub const kSpeedLimit: Self
pub const kDoNotStop: Self
pub const kRailRoad: Self
pub const kGiveWay: Self
pub const kArrowTurnRight: Self
pub const kArrowTurnLeft: Self
pub const kArrowForwardTurnRight: Self
pub const kArrowForwardTurnLeft: Self
pub const kArrowForward: Self
pub const kArrowForwardTurnRightTurnLeft: Self
pub const kArrowTurnRightTurnLeft: Self
pub const kArrowUTurnRight: Self
pub const kArrowUTurnLeft: Self
pub const kUnknown: Self
Trait Implementations§
Source§impl Clone for RoadMarkingType
impl Clone for RoadMarkingType
impl Copy for RoadMarkingType
impl Eq for RoadMarkingType
Source§impl ExternType for RoadMarkingType
impl ExternType for RoadMarkingType
Source§impl PartialEq for RoadMarkingType
impl PartialEq for RoadMarkingType
Source§fn eq(&self, other: &RoadMarkingType) -> bool
fn eq(&self, other: &RoadMarkingType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RoadMarkingType
Auto Trait Implementations§
impl Freeze for RoadMarkingType
impl RefUnwindSafe for RoadMarkingType
impl Send for RoadMarkingType
impl Sync for RoadMarkingType
impl Unpin for RoadMarkingType
impl UnsafeUnpin for RoadMarkingType
impl UnwindSafe for RoadMarkingType
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