pub fn category(&self) -> Category {
        match self {
            RollingStock::Locomotive { .. } => Category::Locomotives,
            RollingStock::FreightCar { .. } => Category::FreightCars,
            RollingStock::PassengerCar { .. } => Category::PassengerCars,
            RollingStock::Train { .. } => Category::Trains,
        }
    }
/// Returns the category for this rolling stock
Returns the category for this rolling stock
Returns the category for this rolling stock
pub fn category(&self) -> Category {
        match self {
            RollingStock::Locomotive { .. } => Category::Locomotives,
            RollingStock::FreightCar { .. } => Category::FreightCars,
            RollingStock::PassengerCar { .. } => Category::PassengerCars,
            RollingStock::Train { .. } => Category::Trains,
        }
    }
pub fn category ( & self ) -> Category { match self { RollingStock :: Locomotive { .. } => Category :: Locomotives , RollingStock :: FreightCar { .. } => Category :: FreightCars , RollingStock :: PassengerCar { .. } => Category :: PassengerCars , RollingStock :: Train { .. } => Category :: Trains , } }
Returns the category for this rolling stock
Returns the category for this rolling stock
&self