pub struct TypeResourceTable {
pub ty: ResourceIndex,
pub instance: RuntimeComponentInstanceIndex,
}
Expand description
Metadata about a resource table added to a component.
Fields§
§ty: ResourceIndex
The original resource that this table contains.
This is used when destroying resources within this table since this original definition will know how to execute destructors.
instance: RuntimeComponentInstanceIndex
The component instance that contains this resource table.
Trait Implementations§
Source§impl Clone for TypeResourceTable
impl Clone for TypeResourceTable
Source§fn clone(&self) -> TypeResourceTable
fn clone(&self) -> TypeResourceTable
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 TypeResourceTable
impl Debug for TypeResourceTable
Source§impl<'de> Deserialize<'de> for TypeResourceTable
impl<'de> Deserialize<'de> for TypeResourceTable
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 Hash for TypeResourceTable
impl Hash for TypeResourceTable
Source§impl PartialEq for TypeResourceTable
impl PartialEq for TypeResourceTable
Source§impl Serialize for TypeResourceTable
impl Serialize for TypeResourceTable
impl Eq for TypeResourceTable
impl StructuralPartialEq for TypeResourceTable
Auto Trait Implementations§
impl Freeze for TypeResourceTable
impl RefUnwindSafe for TypeResourceTable
impl Send for TypeResourceTable
impl Sync for TypeResourceTable
impl Unpin for TypeResourceTable
impl UnwindSafe for TypeResourceTable
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> 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.