(&self, f: &mut fmt::Formatter<'_>)
| 21 | |
| 22 | impl fmt::Display for ResourceTableError { |
| 23 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 24 | match self { |
| 25 | Self::Full => write!(f, "resource table has no free keys"), |
| 26 | Self::NotPresent => write!(f, "resource not present"), |
| 27 | Self::WrongType => write!(f, "resource is of another type"), |
| 28 | Self::HasChildren => write!(f, "resource has children"), |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | impl core::error::Error for ResourceTableError {} |