Sha256: deb6a444431fe40eef837b5db8f4f5fa82ef8a03bb9957c3688895d5f6d7bd20
Contents?: true
Size: 1.08 KB
Versions: 38
Compression:
Stored size: 1.08 KB
Contents
use crate::Region; use thiserror::Error; #[derive(Debug, Error, PartialEq, Eq)] pub enum GuestError { #[error("Invalid flag value {0}")] InvalidFlagValue(&'static str), #[error("Invalid enum value {0}")] InvalidEnumValue(&'static str), #[error("Pointer overflow")] PtrOverflow, #[error("Pointer out of bounds: {0:?}")] PtrOutOfBounds(Region), #[error("Pointer not aligned to {1}: {0:?}")] PtrNotAligned(Region, u32), #[error("Pointer already borrowed: {0:?}")] PtrBorrowed(Region), #[error("Borrow checker out of handles")] BorrowCheckerOutOfHandles, #[error("Slice length mismatch")] SliceLengthsDiffer, #[error("In func {modulename}::{funcname} at {location}: {err}")] InFunc { modulename: &'static str, funcname: &'static str, location: &'static str, #[source] err: Box<GuestError>, }, #[error("Invalid UTF-8 encountered: {0:?}")] InvalidUtf8(#[from] ::std::str::Utf8Error), #[error("Int conversion error: {0:?}")] TryFromIntError(#[from] ::std::num::TryFromIntError), }
Version data entries
38 entries across 38 versions & 1 rubygems