pub enum Intrinsic {
Show 59 variants
JsHelper(JsHelperIntrinsic),
WebIdl(WebIdlIntrinsic),
Conversion(ConversionIntrinsic),
String(StringIntrinsic),
Resource(ResourceIntrinsic),
ErrCtx(ErrCtxIntrinsic),
AsyncTask(AsyncTaskIntrinsic),
Waitable(WaitableIntrinsic),
Lift(LiftIntrinsic),
Lower(LowerIntrinsic),
AsyncStream(AsyncStreamIntrinsic),
AsyncFuture(AsyncFutureIntrinsic),
Component(ComponentIntrinsic),
Host(HostIntrinsic),
PromiseWithResolversPonyfill,
DebugLog,
GlobalAsyncDeterminism,
CoinFlip,
ConstantI32Max,
ConstantI32Min,
TypeCheckValidI32,
TypeCheckAsyncFn,
AsyncFunctionCtor,
Base64Compile,
ClampGuest,
FetchCompile,
SymbolCabiDispose,
SymbolCabiLower,
SymbolResourceHandle,
SymbolResourceRep,
SymbolDispose,
SymbolAsyncIterator,
SymbolIterator,
ScopeId,
HandleTables,
PlatformReadableStreamClass,
FinalizationRegistryCreate,
ComponentError,
GetErrorPayload,
GetErrorPayloadString,
ManagedBufferClass,
BufferManagerClass,
GlobalBufferManager,
RepTableClass,
AsyncEventCodeEnum,
IsLE,
ThrowInvalidBool,
ThrowUninitialized,
HasOwnProperty,
InstantiateCore,
GlobalComponentMemoryMap,
RegisterGlobalMemoryForComponent,
LookupMemoriesForComponent,
GlobalCurrentTaskMeta,
GetGlobalCurrentTaskMetaFn,
SetGlobalCurrentTaskMetaFn,
WithGlobalCurrentTaskMetaFn,
WithGlobalCurrentTaskMetaFnAsync,
ClearGlobalCurrentTaskMetaFn,
}Expand description
List of all intrinsics that are used by these
These intrinsics refer to JS code that is included in order to make transpiled WebAssembly components and their imports/exports functional in the relevant JS context.
Variants§
JsHelper(JsHelperIntrinsic)
WebIdl(WebIdlIntrinsic)
Conversion(ConversionIntrinsic)
String(StringIntrinsic)
Resource(ResourceIntrinsic)
ErrCtx(ErrCtxIntrinsic)
AsyncTask(AsyncTaskIntrinsic)
Waitable(WaitableIntrinsic)
Lift(LiftIntrinsic)
Lower(LowerIntrinsic)
AsyncStream(AsyncStreamIntrinsic)
AsyncFuture(AsyncFutureIntrinsic)
Component(ComponentIntrinsic)
Host(HostIntrinsic)
PromiseWithResolversPonyfill
DebugLog
Enable debug logging
GlobalAsyncDeterminism
Global setting for determinism (used in async)
CoinFlip
Randomly produce a boolean true/false
ConstantI32Max
ConstantI32Min
TypeCheckValidI32
TypeCheckAsyncFn
AsyncFunctionCtor
Base64Compile
ClampGuest
FetchCompile
SymbolCabiDispose
SymbolCabiLower
SymbolResourceHandle
SymbolResourceRep
SymbolDispose
SymbolAsyncIterator
SymbolIterator
ScopeId
HandleTables
PlatformReadableStreamClass
Class that conforms to a ReadableStreams-like interface and is usable externally
This is normally the ReadableStream class provided by the platform itself.
FinalizationRegistryCreate
ComponentError
GetErrorPayload
GetErrorPayloadString
ManagedBufferClass
Class that manages (and synchronizes) writes to managed buffers
BufferManagerClass
Buffer manager that is used to synchronize component writes
GlobalBufferManager
Global for an instantiated buffer manager singleton
RepTableClass
Reusable table structure for holding canonical ABI objects by their representation/identifier of (e.g. resources, waitables, etc)
Representations of objects stored in one of these tables is a u32 (0 is expected to be an invalid index).
AsyncEventCodeEnum
Event codes used for async, as a JS enum
IsLE
ThrowInvalidBool
ThrowUninitialized
HasOwnProperty
InstantiateCore
GlobalComponentMemoryMap
Tracking of component memories
RegisterGlobalMemoryForComponent
Tracking of component memories
LookupMemoriesForComponent
Tracking of component memories
GlobalCurrentTaskMeta
Global that tracks the current task
GetGlobalCurrentTaskMetaFn
Gets the current global task state
SetGlobalCurrentTaskMetaFn
Gets the current global task state
WithGlobalCurrentTaskMetaFn
Execute a closure with a certain set current task
WithGlobalCurrentTaskMetaFnAsync
Execute an async closure with a certain set current task
ClearGlobalCurrentTaskMetaFn
Clear the global task meta
Implementations§
Source§impl Intrinsic
impl Intrinsic
pub fn render(&self, output: &mut Source, args: &RenderIntrinsicsArgs<'_>)
Source§impl Intrinsic
impl Intrinsic
pub fn get_global_names() -> impl IntoIterator<Item = &'static str>
pub fn name(&self) -> &'static str
Trait Implementations§
impl Copy for Intrinsic
impl Eq for Intrinsic
Source§impl Ord for Intrinsic
impl Ord for Intrinsic
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Intrinsic
impl PartialOrd for Intrinsic
impl StructuralPartialEq for Intrinsic
Auto Trait Implementations§
impl Freeze for Intrinsic
impl RefUnwindSafe for Intrinsic
impl Send for Intrinsic
impl Sync for Intrinsic
impl Unpin for Intrinsic
impl UnsafeUnpin for Intrinsic
impl UnwindSafe for Intrinsic
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.