mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 21:34:50 +00:00
Add a viewer tool
This commit is contained in:
parent
f88d856990
commit
7d1394e349
4 changed files with 199 additions and 3 deletions
|
@ -66,12 +66,12 @@ pub fn const_field_offset(input: TokenStream) -> TokenStream {
|
|||
|
||||
// Build the output, possibly using quasi-quotation
|
||||
let expanded = quote! {
|
||||
struct #field_struct_name {
|
||||
#(#fields : usize,)*
|
||||
pub struct #field_struct_name {
|
||||
#(pub #fields : usize,)*
|
||||
}
|
||||
|
||||
impl #struct_name {
|
||||
/*pub ??? */ const fn field_offsets() -> #field_struct_name {
|
||||
pub const fn field_offsets() -> #field_struct_name {
|
||||
let mut len = 0usize;
|
||||
#field_struct_name {
|
||||
#( #fields : {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue