Skip to content

Commit 2583836

Browse files
Add macro documentation
1 parent da96fd4 commit 2583836

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

oneapi-rs-derive/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use syn::{
55
parse_quote,
66
};
77

8+
/// Derive macro generating an impl of the `KernelArgumentList<T>` trait for a given struct.
89
#[proc_macro_derive(KernelArgumentList)]
910
pub fn derive_kernel_argument_list(input: TokenStream) -> TokenStream {
1011
let mut input = parse_macro_input!(input as DeriveInput);
@@ -57,6 +58,7 @@ fn get_single_tuple_impl(argc: usize) -> proc_macro2::TokenStream {
5758
}
5859
}
5960

61+
/// A macro that generates tuples from 2..N which implement the `KernelArgumentList<T>` trait.
6062
#[proc_macro]
6163
pub fn impl_arg_list_for_tuples(input: TokenStream) -> TokenStream {
6264
let input = parse_macro_input!(input as LitInt);

0 commit comments

Comments
 (0)