kodept-ast 0.4.1

Simple compiler with dependent types support in mind
Documentation
1
2
3
4
5
6
use crate::graph::NodeId;

pub(crate) trait Identifiable: Sized {
    fn get_id(&self) -> NodeId<Self>;
    fn set_id(&self, value: NodeId<Self>);
}