xlang_struct 0.1.0

ABI Safe structures for representing xlang's intermediate representation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub use xlang_abi as __abi;

#[macro_export]
macro_rules! simple_path{
    (:: $($id:ident)::*) => {
        $crate::Path{
            components: $crate::macros::__abi::vec![$crate::PathComponent::Root, $($crate::PathComponent::Text(::core::stringify!($id))),*]
        }
    };

    ($($id:ident)::*) => {
        $crate::Path{
            components: $crate::macros::__abi::vec![$($crate::PathComponent::Text(::core::stringify!($id).into())),*]
        }
    }
}