pub enum ShipHardpointModuleError {
FailedToParseHardpointModule(Error),
FailedToParseHardpointMounting(Error),
FailedToParseHardpointSize(HardpointSizeError),
FailedToParseClassNumber(ParseIntError),
MissingMounting,
ModuleClassError(ModuleClassError),
FailedToParse(String),
}
Variants§
FailedToParseHardpointModule(Error)
FailedToParseHardpointMounting(Error)
FailedToParseHardpointSize(HardpointSizeError)
FailedToParseClassNumber(ParseIntError)
MissingMounting
ModuleClassError(ModuleClassError)
FailedToParse(String)
Trait Implementations§
Source§impl Debug for ShipHardpointModuleError
impl Debug for ShipHardpointModuleError
Source§impl Display for ShipHardpointModuleError
impl Display for ShipHardpointModuleError
Source§impl Error for ShipHardpointModuleError
impl Error for ShipHardpointModuleError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<HardpointSizeError> for ShipHardpointModuleError
impl From<HardpointSizeError> for ShipHardpointModuleError
Source§fn from(source: HardpointSizeError) -> Self
fn from(source: HardpointSizeError) -> Self
Converts to this type from the input type.
Source§impl From<ModuleClassError> for ShipHardpointModuleError
impl From<ModuleClassError> for ShipHardpointModuleError
Source§fn from(source: ModuleClassError) -> Self
fn from(source: ModuleClassError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ShipHardpointModuleError
impl !RefUnwindSafe for ShipHardpointModuleError
impl Send for ShipHardpointModuleError
impl Sync for ShipHardpointModuleError
impl Unpin for ShipHardpointModuleError
impl !UnwindSafe for ShipHardpointModuleError
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