Struct dioxus_core::ElementId
source · pub struct ElementId(pub usize);
Expand description
An Element’s unique identifier.
ElementId
is a usize
that is unique across the entire VirtualDOM - but not unique across time. If a component is
unmounted, then the ElementId
will be reused for a new component.
Tuple Fields§
§0: usize
Trait Implementations§
source§impl<'de> Deserialize<'de> for ElementId
impl<'de> Deserialize<'de> for ElementId
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 Ord for ElementId
impl Ord for ElementId
source§impl PartialEq<ElementId> for ElementId
impl PartialEq<ElementId> for ElementId
source§impl PartialOrd<ElementId> for ElementId
impl PartialOrd<ElementId> for ElementId
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 ElementId
impl Eq for ElementId
impl StructuralEq for ElementId
impl StructuralPartialEq for ElementId
Auto Trait Implementations§
impl RefUnwindSafe for ElementId
impl Send for ElementId
impl Sync for ElementId
impl Unpin for ElementId
impl UnwindSafe for ElementId
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