INNER CODE UNIT · Rust
to_tokens
c3rb3ru5d3d53c/binlex · crates/libvex/libvex-macros/src/lib.rs:111
fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) {
tokens.extend(match self {
Self::Big => quote!(IREndness::Iend_BE),
Self::Little => quote!(IREndness::Iend_LE),
})
}
}
impl quote::ToTokens for StoreEndness {
fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) {
tokens.extend(match self {
Self::Big => quote!(IREndness::Iend_BE),
Self::Little => quote!(IREndness::Iend_LE),
})
}
}
impl Parse for LoadEndness {