pub struct TypeFixedLengthListIndex(/* private fields */);Expand description
Index pointing to a fixed size list type in the component model.
Implementations§
Source§impl TypeFixedLengthListIndex
impl TypeFixedLengthListIndex
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 TypeFixedLengthListIndex
impl Clone for TypeFixedLengthListIndex
Source§fn clone(&self) -> TypeFixedLengthListIndex
fn clone(&self) -> TypeFixedLengthListIndex
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeFixedLengthListIndex
impl Debug for TypeFixedLengthListIndex
Source§impl<'de> Deserialize<'de> for TypeFixedLengthListIndex
impl<'de> Deserialize<'de> for TypeFixedLengthListIndex
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 TypeFixedLengthListIndex
impl EntityRef for TypeFixedLengthListIndex
Source§impl Hash for TypeFixedLengthListIndex
impl Hash for TypeFixedLengthListIndex
Source§impl Index<TypeFixedLengthListIndex> for ComponentTypes
impl Index<TypeFixedLengthListIndex> for ComponentTypes
Source§type Output = TypeFixedLengthList
type Output = TypeFixedLengthList
The returned type after indexing.
Source§fn index(&self, idx: TypeFixedLengthListIndex) -> &TypeFixedLengthList
fn index(&self, idx: TypeFixedLengthListIndex) -> &TypeFixedLengthList
Performs the indexing (
container[index]) operation. Read moreSource§impl Index<TypeFixedLengthListIndex> for ComponentTypesBuilder
Available on crate feature compile only.
impl Index<TypeFixedLengthListIndex> for ComponentTypesBuilder
Available on crate feature
compile only.Source§type Output = TypeFixedLengthList
type Output = TypeFixedLengthList
The returned type after indexing.
Source§fn index(&self, idx: TypeFixedLengthListIndex) -> &TypeFixedLengthList
fn index(&self, idx: TypeFixedLengthListIndex) -> &TypeFixedLengthList
Performs the indexing (
container[index]) operation. Read moreSource§impl Ord for TypeFixedLengthListIndex
impl Ord for TypeFixedLengthListIndex
Source§impl PartialEq for TypeFixedLengthListIndex
impl PartialEq for TypeFixedLengthListIndex
Source§impl PartialOrd for TypeFixedLengthListIndex
impl PartialOrd for TypeFixedLengthListIndex
Source§impl ReservedValue for TypeFixedLengthListIndex
impl ReservedValue for TypeFixedLengthListIndex
Source§fn reserved_value() -> TypeFixedLengthListIndex
fn reserved_value() -> TypeFixedLengthListIndex
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 TypeFixedLengthListIndex
impl Serialize for TypeFixedLengthListIndex
impl Copy for TypeFixedLengthListIndex
impl Eq for TypeFixedLengthListIndex
impl StructuralPartialEq for TypeFixedLengthListIndex
Auto Trait Implementations§
impl Freeze for TypeFixedLengthListIndex
impl RefUnwindSafe for TypeFixedLengthListIndex
impl Send for TypeFixedLengthListIndex
impl Sync for TypeFixedLengthListIndex
impl Unpin for TypeFixedLengthListIndex
impl UnwindSafe for TypeFixedLengthListIndex
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.