Trait hyper_ast::types::NodeId

source ·
pub trait NodeId: Eq + Clone {
    type IdN: Eq + NodeId;

    // Required methods
    fn as_id(&self) -> &Self::IdN;
    unsafe fn from_id(id: Self::IdN) -> Self;
    unsafe fn from_ref_id(id: &Self::IdN) -> &Self;
}

Required Associated Types§

Required Methods§

source

fn as_id(&self) -> &Self::IdN

source

unsafe fn from_id(id: Self::IdN) -> Self

source

unsafe fn from_ref_id(id: &Self::IdN) -> &Self

Implementations on Foreign Types§

source§

impl NodeId for u16

§

type IdN = u16

source§

fn as_id(&self) -> &Self::IdN

source§

unsafe fn from_id(id: Self::IdN) -> Self

source§

unsafe fn from_ref_id(id: &Self::IdN) -> &Self

source§

impl NodeId for NonZeroU64

§

type IdN = NonZeroU64

source§

fn as_id(&self) -> &Self::IdN

source§

unsafe fn from_id(id: Self::IdN) -> Self

source§

unsafe fn from_ref_id(id: &Self::IdN) -> &Self

Implementors§

source§

impl NodeId for hyper_ast::store::nodes::fetched::NodeIdentifier

source§

impl NodeId for hyper_ast::store::nodes::legion::NodeIdentifier

§

type IdN = Entity