pub struct TypeComponentLocalErrorContextTableIndex(/* private fields */);
Expand description
Index pointing to a error context table within a component.
This is analogous to TypeResourceTableIndex
in that it tracks
ownership of error contexts within each (sub)component instance.
Implementations§
Source§impl TypeComponentLocalErrorContextTableIndex
impl TypeComponentLocalErrorContextTableIndex
Sourcepub fn as_bits(self) -> u32
pub fn as_bits(self) -> u32
Return the raw bit encoding for this instance.
Warning: the raw bit encoding is opaque and has no
guaranteed correspondence to the entity’s index. It encodes the
entire state of this index value: either a valid index or an
invalid-index sentinel. The value returned by this method should
only be passed to from_bits
.
Sourcepub fn from_bits(x: u32) -> Self
pub fn from_bits(x: u32) -> Self
Create a new instance from the raw bit encoding.
Warning: the raw bit encoding is opaque and has no
guaranteed correspondence to the entity’s index. It encodes the
entire state of this index value: either a valid index or an
invalid-index sentinel. The value returned by this method should
only be given bits from as_bits
.
Trait Implementations§
Source§impl Clone for TypeComponentLocalErrorContextTableIndex
impl Clone for TypeComponentLocalErrorContextTableIndex
Source§fn clone(&self) -> TypeComponentLocalErrorContextTableIndex
fn clone(&self) -> TypeComponentLocalErrorContextTableIndex
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'de> Deserialize<'de> for TypeComponentLocalErrorContextTableIndex
impl<'de> Deserialize<'de> for TypeComponentLocalErrorContextTableIndex
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>,
Source§impl Index<TypeComponentLocalErrorContextTableIndex> for ComponentTypes
impl Index<TypeComponentLocalErrorContextTableIndex> for ComponentTypes
Source§type Output = TypeErrorContextTable
type Output = TypeErrorContextTable
Source§fn index(
&self,
idx: TypeComponentLocalErrorContextTableIndex,
) -> &TypeErrorContextTable
fn index( &self, idx: TypeComponentLocalErrorContextTableIndex, ) -> &TypeErrorContextTable
container[index]
) operation. Read moreSource§impl Index<TypeComponentLocalErrorContextTableIndex> for ComponentTypesBuilder
impl Index<TypeComponentLocalErrorContextTableIndex> for ComponentTypesBuilder
Source§type Output = TypeErrorContextTable
type Output = TypeErrorContextTable
Source§fn index(
&self,
idx: TypeComponentLocalErrorContextTableIndex,
) -> &TypeErrorContextTable
fn index( &self, idx: TypeComponentLocalErrorContextTableIndex, ) -> &TypeErrorContextTable
container[index]
) operation. Read moreSource§impl Ord for TypeComponentLocalErrorContextTableIndex
impl Ord for TypeComponentLocalErrorContextTableIndex
Source§fn cmp(&self, other: &TypeComponentLocalErrorContextTableIndex) -> Ordering
fn cmp(&self, other: &TypeComponentLocalErrorContextTableIndex) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TypeComponentLocalErrorContextTableIndex
impl PartialEq for TypeComponentLocalErrorContextTableIndex
Source§fn eq(&self, other: &TypeComponentLocalErrorContextTableIndex) -> bool
fn eq(&self, other: &TypeComponentLocalErrorContextTableIndex) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for TypeComponentLocalErrorContextTableIndex
impl PartialOrd for TypeComponentLocalErrorContextTableIndex
Source§impl ReservedValue for TypeComponentLocalErrorContextTableIndex
impl ReservedValue for TypeComponentLocalErrorContextTableIndex
Source§fn reserved_value() -> TypeComponentLocalErrorContextTableIndex
fn reserved_value() -> TypeComponentLocalErrorContextTableIndex
Source§fn is_reserved_value(&self) -> bool
fn is_reserved_value(&self) -> bool
impl Copy for TypeComponentLocalErrorContextTableIndex
impl Eq for TypeComponentLocalErrorContextTableIndex
impl StructuralPartialEq for TypeComponentLocalErrorContextTableIndex
Auto Trait Implementations§
impl Freeze for TypeComponentLocalErrorContextTableIndex
impl RefUnwindSafe for TypeComponentLocalErrorContextTableIndex
impl Send for TypeComponentLocalErrorContextTableIndex
impl Sync for TypeComponentLocalErrorContextTableIndex
impl Unpin for TypeComponentLocalErrorContextTableIndex
impl UnwindSafe for TypeComponentLocalErrorContextTableIndex
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.