pub enum HardpointSizeError {
UnknownHardpointSizeNumber(u8),
UnknownHardpointSize(String),
}
Variants§
Trait Implementations§
Source§impl Debug for HardpointSizeError
impl Debug for HardpointSizeError
Source§impl Display for HardpointSizeError
impl Display for HardpointSizeError
Source§impl Error for HardpointSizeError
impl Error for HardpointSizeError
1.30.0 · 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<HardpointSizeError> for ShipSlotError
impl From<HardpointSizeError> for ShipSlotError
Source§fn from(source: HardpointSizeError) -> Self
fn from(source: HardpointSizeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HardpointSizeError
impl RefUnwindSafe for HardpointSizeError
impl Send for HardpointSizeError
impl Sync for HardpointSizeError
impl Unpin for HardpointSizeError
impl UnwindSafe for HardpointSizeError
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