pub enum GlobalError {
ImmutableGlobalCannotBeSet,
IncorrectType {
expected: Type,
found: Type,
},
}
Expand description
Error type describing things that can go wrong when operating on Wasm Globals.
Variants§
ImmutableGlobalCannotBeSet
The error returned when attempting to set an immutable global.
IncorrectType
The error returned when attempting to operate on a global as a specific type that differs from the global’s own type.
Trait Implementations§
Source§impl Clone for GlobalError
impl Clone for GlobalError
Source§fn clone(&self) -> GlobalError
fn clone(&self) -> GlobalError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GlobalError
impl Debug for GlobalError
Source§impl Display for GlobalError
impl Display for GlobalError
Source§impl Error for GlobalError
impl Error for GlobalError
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 Hash for GlobalError
impl Hash for GlobalError
Source§impl PartialEq for GlobalError
impl PartialEq for GlobalError
impl StructuralPartialEq for GlobalError
Auto Trait Implementations§
impl Freeze for GlobalError
impl RefUnwindSafe for GlobalError
impl Send for GlobalError
impl Sync for GlobalError
impl Unpin for GlobalError
impl UnwindSafe for GlobalError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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