pub enum AddTrainError {
EmptyStopList,
DuplicateTrain,
RangeError(String),
BadStationNumber(usize),
DuplicateStorageIsAt(String, String, String),
DuplicateStorageAt(String, String),
}Variants§
EmptyStopList
DuplicateTrain
RangeError(String)
BadStationNumber(usize)
DuplicateStorageIsAt(String, String, String)
DuplicateStorageAt(String, String)
Trait Implementations§
Source§impl Clone for AddTrainError
impl Clone for AddTrainError
Source§fn clone(&self) -> AddTrainError
fn clone(&self) -> AddTrainError
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 AddTrainError
impl Debug for AddTrainError
Source§impl PartialEq for AddTrainError
impl PartialEq for AddTrainError
impl StructuralPartialEq for AddTrainError
Auto Trait Implementations§
impl Freeze for AddTrainError
impl RefUnwindSafe for AddTrainError
impl Send for AddTrainError
impl Sync for AddTrainError
impl Unpin for AddTrainError
impl UnwindSafe for AddTrainError
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