pub fn from_lt(lt: LaneType) -> PathConstraints {
        match lt {
            LaneType::Sidewalk | LaneType::Shoulder => PathConstraints::Pedestrian,
            LaneType::Driving => PathConstraints::Car,
            LaneType::Biking => PathConstraints::Bike,
            LaneType::Bus => PathConstraints::Bus,
            LaneType::LightRail => PathConstraints::Train,
            _ => panic!("PathConstraints::from_lt({:?}) doesn't make sense", lt),
        }
    }
/// Not bijective, but this is the best guess of user intent
Not bijective, but this is the best guess of user intent
Not bijective but this is the best guess of user intent
pub fn from_lt(lt: LaneType) -> PathConstraints {
        match lt {
            LaneType::Sidewalk | LaneType::Shoulder => PathConstraints::Pedestrian,
            LaneType::Driving => PathConstraints::Car,
            LaneType::Biking => PathConstraints::Bike,
            LaneType::Bus => PathConstraints::Bus,
            LaneType::LightRail => PathConstraints::Train,
            _ => panic!("PathConstraints::from_lt({:?}) doesn't make sense", lt),
        }
    }
pub fn from_lt ( lt : LaneType ) -> PathConstraints { match lt { LaneType :: Sidewalk | LaneType :: Shoulder => PathConstraints :: Pedestrian , LaneType :: Driving => PathConstraints :: Car , LaneType :: Biking => PathConstraints :: Bike , LaneType :: Bus => PathConstraints :: Bus , LaneType :: LightRail => PathConstraints :: Train , _ => panic ! ( " " lt ) , } }
Not bijective, but this is the best guess of user intent
Not bijective but this is the best guess of user intent
lt
LaneType