Struct dioxus_native_core::prelude::NodeId
pub struct NodeId(/* private fields */);
Expand description
Handle to an entity.
Implementations§
§impl EntityId
impl EntityId
pub fn index(self) -> u64
pub fn index(self) -> u64
Returns the index part of the EntityId
.
⚠️ You shouldn’t use it to index a storage.
pub fn uindex(self) -> usize
pub fn uindex(self) -> usize
Returns the index part of the EntityId
as an usize.
⚠️ You shouldn’t use it to index a storage.
pub const fn new_from_index_and_gen(index: u64, gen: u16) -> EntityId
pub const fn new_from_index_and_gen(index: u64, gen: u16) -> EntityId
Build a new EntityId
with the given index and generation.
pub fn from_inner(inner: u64) -> Option<EntityId>
pub fn from_inner(inner: u64) -> Option<EntityId>
Build an EntityId
from its inner representation.
Trait Implementations§
§impl Ord for EntityId
impl Ord for EntityId
§impl PartialOrd for EntityId
impl PartialOrd for EntityId
§fn partial_cmp(&self, other: &EntityId) -> Option<Ordering>
fn partial_cmp(&self, other: &EntityId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for EntityId
impl Eq for EntityId
impl StructuralPartialEq for EntityId
Auto Trait Implementations§
impl RefUnwindSafe for EntityId
impl Send for EntityId
impl Sync for EntityId
impl Unpin for EntityId
impl UnwindSafe for EntityId
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
§impl<T> CallHasher for T
impl<T> CallHasher for T
§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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.