Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_reflect/derive/src/impls/func/function_impls.rs
6601 views
1
use crate::{
2
impls::func::{
3
from_arg::impl_from_arg, get_ownership::impl_get_ownership, into_return::impl_into_return,
4
},
5
where_clause_options::WhereClauseOptions,
6
};
7
use quote::quote;
8
9
pub(crate) fn impl_function_traits(
10
where_clause_options: &WhereClauseOptions,
11
) -> proc_macro2::TokenStream {
12
let get_ownership = impl_get_ownership(where_clause_options);
13
let from_arg = impl_from_arg(where_clause_options);
14
let into_return = impl_into_return(where_clause_options);
15
16
quote! {
17
#get_ownership
18
19
#from_arg
20
21
#into_return
22
}
23
}
24
25