pub struct RoadProfile {Show 16 fields
pub road_type: RoadType,
pub total_width: f32,
pub lane_count: u32,
pub lane_width: f32,
pub has_curb: bool,
pub has_shoulder: bool,
pub has_ditch: bool,
pub has_sidewalk: bool,
pub speed_limit_kmh: f32,
pub surface_friction: f32,
pub material_id: u32,
pub shoulder_material_id: u32,
pub max_slope_grade: f32,
pub is_elevated: bool,
pub tunnel_clearance: f32,
pub bridge_deck_thickness: f32,
}Fields§
§road_type: RoadType§total_width: f32§lane_count: u32§lane_width: f32§has_curb: bool§has_shoulder: bool§has_ditch: bool§has_sidewalk: bool§speed_limit_kmh: f32§surface_friction: f32§material_id: u32§shoulder_material_id: u32§max_slope_grade: f32§is_elevated: bool§tunnel_clearance: f32§bridge_deck_thickness: f32Implementations§
Source§impl RoadProfile
impl RoadProfile
pub fn default_for_type(rt: RoadType) -> Self
Trait Implementations§
Source§impl Clone for RoadProfile
impl Clone for RoadProfile
Source§impl Debug for RoadProfile
impl Debug for RoadProfile
Auto Trait Implementations§
impl Freeze for RoadProfile
impl RefUnwindSafe for RoadProfile
impl Send for RoadProfile
impl Sync for RoadProfile
impl Unpin for RoadProfile
impl UnsafeUnpin for RoadProfile
impl UnwindSafe for RoadProfile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.