#[repr(transparent)]pub struct RoadObjectType {
pub repr: i32,
}Expand description
Shared enum representing different types of road objects. 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 RoadObjectType
impl RoadObjectType
pub const kUnknown: Self
pub const kBarrier: Self
pub const kGuardWall: Self
pub const kGuardRail: Self
pub const kBuilding: Self
pub const kGantry: Self
pub const kObstacle: Self
pub const kPole: Self
pub const kTrafficIsland: Self
pub const kTree: Self
pub const kVegetation: Self
pub const kPylon: Self
pub const kDelineator: Self
pub const kBikeStatic: Self
pub const kBusStatic: Self
pub const kCarStatic: Self
pub const kMotorbikeStatic: Self
pub const kPatch: Self
pub const kPedestrianStatic: Self
pub const kRailing: Self
pub const kRoadSurface: Self
pub const kSoundBarrier: Self
pub const kStreetLamp: Self
pub const kTrailerStatic: Self
pub const kTrainStatic: Self
pub const kTramStatic: Self
pub const kVanStatic: Self
pub const kWind: Self
Trait Implementations§
Source§impl Clone for RoadObjectType
impl Clone for RoadObjectType
impl Copy for RoadObjectType
impl Eq for RoadObjectType
Source§impl ExternType for RoadObjectType
impl ExternType for RoadObjectType
Source§impl PartialEq for RoadObjectType
impl PartialEq for RoadObjectType
impl StructuralPartialEq for RoadObjectType
Auto Trait Implementations§
impl Freeze for RoadObjectType
impl RefUnwindSafe for RoadObjectType
impl Send for RoadObjectType
impl Sync for RoadObjectType
impl Unpin for RoadObjectType
impl UnsafeUnpin for RoadObjectType
impl UnwindSafe for RoadObjectType
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