make new function public
This commit is contained in:
parent
647d81b645
commit
dadb0f5818
@ -171,13 +171,13 @@ pub fn table(input: TokenStream) -> TokenStream {
|
|||||||
let expanded = quote! {
|
let expanded = quote! {
|
||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl #ty_name {
|
impl #ty_name {
|
||||||
fn new(#new_args) -> Self {
|
pub fn new(#new_args) -> Self {
|
||||||
Self {
|
Self {
|
||||||
id: Key::new(),
|
id: Key::new(),
|
||||||
#new_args_assignment
|
#new_args_assignment
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const fn has_field(field: &[u8]) -> bool {
|
pub const fn has_field(field: &[u8]) -> bool {
|
||||||
match field {
|
match field {
|
||||||
#has_field_matching
|
#has_field_matching
|
||||||
_ => false,
|
_ => false,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user