MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / is_null

Method is_null

crates/wasmtime/src/runtime/values.rs:871–878  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

869 /// Is this a null reference?
870 #[inline]
871 pub fn is_null(&self) -> bool {
872 match self {
873 Ref::Any(None) | Ref::Extern(None) | Ref::Func(None) | Ref::Exn(None) => true,
874 Ref::Any(Some(_)) | Ref::Extern(Some(_)) | Ref::Func(Some(_)) | Ref::Exn(Some(_)) => {
875 false
876 }
877 }
878 }
879
880 /// Is this a non-null reference?
881 #[inline]

Callers 15

lookup_with_dlsymFunction · 0.80
addrMethod · 0.80
shrink_to_fitMethod · 0.80
newMethod · 0.80
stdin_pathMethod · 0.80
execution_flagsMethod · 0.80
is_non_nullMethod · 0.80
load_tyMethod · 0.80
_matches_tyMethod · 0.80
withFunction · 0.80
reserveMethod · 0.80

Calls

no outgoing calls

Tested by 3

dropMethod · 0.64