pub struct Motorcycle {
pub name: String,
pub year: Option<u32>,
pub engine_cc: Option<u32>,
pub bike_type: Option<String>,
}Fields§
§name: String§year: Option<u32>§engine_cc: Option<u32>§bike_type: Option<String>Trait Implementations§
Source§impl Clone for Motorcycle
impl Clone for Motorcycle
Source§fn clone(&self) -> Motorcycle
fn clone(&self) -> Motorcycle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Motorcycle
impl Debug for Motorcycle
Source§impl Default for Motorcycle
impl Default for Motorcycle
Source§fn default() -> Motorcycle
fn default() -> Motorcycle
Returns the “default value” for a type. Read more
Source§impl PartialEq for Motorcycle
impl PartialEq for Motorcycle
impl StructuralPartialEq for Motorcycle
Auto Trait Implementations§
impl Freeze for Motorcycle
impl RefUnwindSafe for Motorcycle
impl Send for Motorcycle
impl Sync for Motorcycle
impl Unpin for Motorcycle
impl UnwindSafe for Motorcycle
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