use alloc::string::String; use core::fmt; use core::num::TryFromIntError; use core::result; #[cfg(feature = "std")] use std::{error, io};
#[non_exhaustive] #[derive(Debug)] /// A custom Goblin error pubenum Error { /// The binary is malformed somehow
Malformed(String), /// The binary's magic is unknown or bad
BadMagic(u64), /// An error emanating from reading and interpreting bytes
Scroll(scroll::Error), /// An IO based error #[cfg(feature = "std")]
IO(io::Error), /// Buffer is too short to hold N items
BufferTooShort(usize, &'static str),
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.