pub struct TypeResourceTableIndex(/* private fields */);
Expand description
Index pointing to a resource table within a component.
This is a Wasmtime-specific type index which isn’t part of the component model per-se (or at least not the binary format). This index represents a pointer to a table of runtime information tracking state for resources within a component. Tables are generated per-resource-per-component meaning that if the exact same resource is imported into 4 subcomponents then that’s 5 tables: one for the defining component and one for each subcomponent.
All resource-related intrinsics operate on table-local indices which
indicate which table the intrinsic is modifying. Each resource table has
an origin resource type (defined by ResourceIndex
) along with a
component instance that it’s recorded for.
Implementations§
Trait Implementations§
Source§impl Clone for TypeResourceTableIndex
impl Clone for TypeResourceTableIndex
Source§fn clone(&self) -> TypeResourceTableIndex
fn clone(&self) -> TypeResourceTableIndex
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 TypeResourceTableIndex
impl Debug for TypeResourceTableIndex
Source§impl<'de> Deserialize<'de> for TypeResourceTableIndex
impl<'de> Deserialize<'de> for TypeResourceTableIndex
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EntityRef for TypeResourceTableIndex
impl EntityRef for TypeResourceTableIndex
Source§impl Hash for TypeResourceTableIndex
impl Hash for TypeResourceTableIndex
Source§impl Index<TypeResourceTableIndex> for ComponentTypes
impl Index<TypeResourceTableIndex> for ComponentTypes
Source§type Output = TypeResourceTable
type Output = TypeResourceTable
The returned type after indexing.
Source§fn index(&self, idx: TypeResourceTableIndex) -> &TypeResourceTable
fn index(&self, idx: TypeResourceTableIndex) -> &TypeResourceTable
Performs the indexing (
container[index]
) operation. Read moreSource§impl Index<TypeResourceTableIndex> for ComponentTypesBuilder
impl Index<TypeResourceTableIndex> for ComponentTypesBuilder
Source§type Output = TypeResourceTable
type Output = TypeResourceTable
The returned type after indexing.
Source§fn index(&self, idx: TypeResourceTableIndex) -> &TypeResourceTable
fn index(&self, idx: TypeResourceTableIndex) -> &TypeResourceTable
Performs the indexing (
container[index]
) operation. Read moreSource§impl Ord for TypeResourceTableIndex
impl Ord for TypeResourceTableIndex
Source§fn cmp(&self, other: &TypeResourceTableIndex) -> Ordering
fn cmp(&self, other: &TypeResourceTableIndex) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TypeResourceTableIndex
impl PartialEq for TypeResourceTableIndex
Source§impl PartialOrd for TypeResourceTableIndex
impl PartialOrd for TypeResourceTableIndex
Source§impl ReservedValue for TypeResourceTableIndex
impl ReservedValue for TypeResourceTableIndex
Source§fn reserved_value() -> TypeResourceTableIndex
fn reserved_value() -> TypeResourceTableIndex
Create an instance of the reserved value.
Source§fn is_reserved_value(&self) -> bool
fn is_reserved_value(&self) -> bool
Checks whether value is the reserved one.
Source§impl Serialize for TypeResourceTableIndex
impl Serialize for TypeResourceTableIndex
impl Copy for TypeResourceTableIndex
impl Eq for TypeResourceTableIndex
impl StructuralPartialEq for TypeResourceTableIndex
Auto Trait Implementations§
impl Freeze for TypeResourceTableIndex
impl RefUnwindSafe for TypeResourceTableIndex
impl Send for TypeResourceTableIndex
impl Sync for TypeResourceTableIndex
impl Unpin for TypeResourceTableIndex
impl UnwindSafe for TypeResourceTableIndex
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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
Compare self to
key
and return true
if they are equal.