#[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 kBuilding: Self
pub const kCrosswalk: Self
pub const kGantry: Self
pub const kObstacle: Self
pub const kParkingSpace: Self
pub const kPole: Self
pub const kRoadMark: Self
pub const kRoadSurface: Self
pub const kStopLine: Self
pub const kTrafficIsland: Self
pub const kTree: Self
pub const kVegetation: Self
Trait Implementations§
Source§impl Clone for RoadObjectType
impl Clone for RoadObjectType
Source§impl ExternType for RoadObjectType
impl ExternType for RoadObjectType
Source§impl PartialEq for RoadObjectType
impl PartialEq for RoadObjectType
impl Copy for RoadObjectType
impl Eq 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