pub struct NodeTypeId(/* private fields */);Expand description
Type identifier for a node (for downcasting)
Implementations§
Source§impl NodeTypeId
impl NodeTypeId
Sourcepub fn of<T>() -> NodeTypeIdwhere
T: 'static + ?Sized,
pub fn of<T>() -> NodeTypeIdwhere
T: 'static + ?Sized,
Create a new node type ID from a type
Sourcepub fn as_type_id(&self) -> TypeId
pub fn as_type_id(&self) -> TypeId
Get the inner TypeId
Trait Implementations§
Source§impl Clone for NodeTypeId
impl Clone for NodeTypeId
Source§fn clone(&self) -> NodeTypeId
fn clone(&self) -> NodeTypeId
Returns a duplicate 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 NodeTypeId
impl Debug for NodeTypeId
Source§impl Hash for NodeTypeId
impl Hash for NodeTypeId
Source§impl PartialEq for NodeTypeId
impl PartialEq for NodeTypeId
impl Copy for NodeTypeId
impl Eq for NodeTypeId
impl StructuralPartialEq for NodeTypeId
Auto Trait Implementations§
impl Freeze for NodeTypeId
impl RefUnwindSafe for NodeTypeId
impl Send for NodeTypeId
impl Sync for NodeTypeId
impl Unpin for NodeTypeId
impl UnsafeUnpin for NodeTypeId
impl UnwindSafe for NodeTypeId
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