pub struct RoadProfile {
pub lane_width: f32,
pub lane_count: u32,
pub shoulder_width: f32,
pub curb_height: f32,
pub median_width: f32,
pub has_sidewalk: bool,
pub sidewalk_width: f32,
pub sidewalk_height: f32,
}Fields§
§lane_width: f32§lane_count: u32§shoulder_width: f32§curb_height: f32§median_width: f32§has_sidewalk: bool§sidewalk_width: f32§sidewalk_height: f32Implementations§
Source§impl RoadProfile
impl RoadProfile
pub fn two_lane_road() -> Self
pub fn highway() -> Self
pub fn total_width(&self) -> f32
pub fn generate_cross_section(&self) -> CrossSection
Trait Implementations§
Source§impl Clone for RoadProfile
impl Clone 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.