pub struct PGNMetadataError {
pub metadata: String,
}Expand description
An error that occurs when parsing PGN metadata
§Attributes
metadata- The metadata that caused the error
Fields§
§metadata: StringThe metadata key/value that caused the error
Implementations§
Trait Implementations§
Source§impl Debug for PGNMetadataError
impl Debug for PGNMetadataError
Source§impl Display for PGNMetadataError
impl Display for PGNMetadataError
Source§impl Error for PGNMetadataError
impl Error for PGNMetadataError
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<PGNMetadataError> for PGNError
impl From<PGNMetadataError> for PGNError
Source§fn from(source: PGNMetadataError) -> Self
fn from(source: PGNMetadataError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PGNMetadataError
impl RefUnwindSafe for PGNMetadataError
impl Send for PGNMetadataError
impl Sync for PGNMetadataError
impl Unpin for PGNMetadataError
impl UnsafeUnpin for PGNMetadataError
impl UnwindSafe for PGNMetadataError
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