#[repr(transparent)]pub struct LaneType {
pub repr: u32,
}Expand description
Shared enum representing different types of lanes. 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: u32Implementations§
Source§impl LaneType
impl LaneType
pub const kUnknown: Self
pub const kDriving: Self
pub const kTurn: Self
pub const kHov: Self
pub const kBus: Self
pub const kTaxi: Self
pub const kEmergency: Self
pub const kShoulder: Self
pub const kBiking: Self
pub const kWalking: Self
pub const kParking: Self
pub const kStop: Self
pub const kBorder: Self
pub const kCurb: Self
pub const kMedian: Self
pub const kRestricted: Self
pub const kConstruction: Self
pub const kRail: Self
pub const kEntry: Self
pub const kExit: Self
pub const kOnRamp: Self
pub const kOffRamp: Self
pub const kConnectingRamp: Self
pub const kSlipLane: Self
pub const kVirtual: Self
Trait Implementations§
Source§impl ExternType for LaneType
impl ExternType for LaneType
impl Copy for LaneType
impl Eq for LaneType
impl StructuralPartialEq for LaneType
Auto Trait Implementations§
impl Freeze for LaneType
impl RefUnwindSafe for LaneType
impl Send for LaneType
impl Sync for LaneType
impl Unpin for LaneType
impl UnwindSafe for LaneType
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