multiple layers of pointers work!
This commit is contained in:
12
crates/memory/src/error.rs
Normal file
12
crates/memory/src/error.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use crate::Region;
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum GuestError {
|
||||
#[error("Invalid enum value {0}")]
|
||||
InvalidEnumValue(&'static str),
|
||||
#[error("Out of bounds: {0:?}")]
|
||||
PtrOutOfBounds(Region),
|
||||
#[error("Borrowed: {0:?}")]
|
||||
PtrBorrowed(Region),
|
||||
}
|
||||
Reference in New Issue
Block a user