pub struct VehicleConfig { /* private fields */ }Expand description
Parametric configuration for VehicleKit::build.
Implementations§
Source§impl VehicleConfig
Vehicle preset constructors for VehicleConfig.
impl VehicleConfig
Vehicle preset constructors for VehicleConfig.
Sourcepub fn sports_car(paint: PbrMaterial) -> Self
pub fn sports_car(paint: PbrMaterial) -> Self
Sourcepub fn sedan(paint: PbrMaterial) -> Self
pub fn sedan(paint: PbrMaterial) -> Self
Sourcepub fn suv(paint: PbrMaterial) -> Self
pub fn suv(paint: PbrMaterial) -> Self
Sourcepub fn truck(paint: PbrMaterial) -> Self
pub fn truck(paint: PbrMaterial) -> Self
Source§impl VehicleConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
impl VehicleConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_style(&self) -> VehicleBodyStyle
pub fn get_mut_style(&mut self) -> &mut VehicleBodyStyle
pub fn set_style(&mut self, val: VehicleBodyStyle) -> &mut Self
pub fn get_length(&self) -> f32
pub fn get_mut_length(&mut self) -> &mut f32
pub fn set_length(&mut self, val: f32) -> &mut Self
pub fn get_width(&self) -> f32
pub fn get_mut_width(&mut self) -> &mut f32
pub fn set_width(&mut self, val: f32) -> &mut Self
pub fn get_height(&self) -> f32
pub fn get_mut_height(&mut self) -> &mut f32
pub fn set_height(&mut self, val: f32) -> &mut Self
pub fn get_wheel_radius(&self) -> f32
pub fn get_mut_wheel_radius(&mut self) -> &mut f32
pub fn set_wheel_radius(&mut self, val: f32) -> &mut Self
pub fn get_wheel_width(&self) -> f32
pub fn get_mut_wheel_width(&mut self) -> &mut f32
pub fn set_wheel_width(&mut self, val: f32) -> &mut Self
pub fn get_paint(&self) -> PbrMaterial
pub fn get_mut_paint(&mut self) -> &mut PbrMaterial
pub fn set_paint(&mut self, val: PbrMaterial) -> &mut Self
pub fn get_has_spoiler(&self) -> bool
pub fn get_mut_has_spoiler(&mut self) -> &mut bool
pub fn set_has_spoiler(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for VehicleConfig
impl Clone for VehicleConfig
impl Copy for VehicleConfig
Source§impl Debug for VehicleConfig
impl Debug for VehicleConfig
Source§impl Default for VehicleConfig
Default sports-car configuration for VehicleConfig.
impl Default for VehicleConfig
Default sports-car configuration for VehicleConfig.
Source§impl PartialEq for VehicleConfig
impl PartialEq for VehicleConfig
impl StructuralPartialEq for VehicleConfig
Auto Trait Implementations§
impl Forget for VehicleConfig
impl Freeze for VehicleConfig
impl Move for VehicleConfig
impl RefUnwindSafe for VehicleConfig
impl Send for VehicleConfig
impl Sync for VehicleConfig
impl Unpin for VehicleConfig
impl UnsafeUnpin for VehicleConfig
impl UnwindSafe for VehicleConfig
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