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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.