/// Expands the given `#[bitfield]` struct into an actual bitfield definition.
Expands the given `#[bitfield]` struct into an actual bitfield definition.
Expands the given ` # [ bitfield ] ` struct into an actual bitfield definition .
pub fn expand_unpacked(&self, config: &Config) -> TokenStream2 {
        let span = self.item_struct.span();
        let check_filled = self.generate_check_for_filled(config);
        let struct_definition = self.generate_struct_unpacked(config);
        let constructor_definition = self.generate_constructor_unpacked(config);
        let specifier_impl = self.generate_specifier_impl(config);
        let byte_conversion_impls = self.generate_byte_conversion_impls_unpacked(config);
        let byte_update_impls = self.generate_byte_update_impls_unpacked(config);
        let getters_and_setters = self.generate_getters_and_setters_unpacked(config);
        let from_into_impl = self.generate_to_from_repr_unpacked(config);
        // let repr_impls_and_checks = self.expand_repr_from_impls_and_checks(config);
        quote_spanned!(span=>
            #struct_definition
            #check_filled
            #constructor_definition
            #byte_conversion_impls
            #byte_update_impls
            #getters_and_setters
            #specifier_impl
            #from_into_impl
            // #bytes_check
            // #repr_impls_and_checks
        )
    }
pub fn expand_unpacked ( & self , config : & Config ) -> TokenStream2 { let span = self . item_struct . span ( ) ; let check_filled = self . generate_check_for_filled ( config ) ; let struct_definition = self . generate_struct_unpacked ( config ) ; let constructor_definition = self . generate_constructor_unpacked ( config ) ; let specifier_impl = self . generate_specifier_impl ( config ) ; let byte_conversion_impls = self . generate_byte_conversion_impls_unpacked ( config ) ; let byte_update_impls = self . generate_byte_update_impls_unpacked ( config ) ; let getters_and_setters = self . generate_getters_and_setters_unpacked ( config ) ; let from_into_impl = self . generate_to_from_repr_unpacked ( config ) ; // let repr_impls_and_checks = self.expand_repr_from_impls_and_checks(config); quote_spanned ! ( span struct_definition check_filled constructor_definition byte_conversion_impls byte_update_impls getters_and_setters specifier_impl from_into_impl // #bytes_check // #repr_impls_and_checks ) }
Expands the given `#[bitfield]` struct into an actual bitfield definition.
Expands the given ` # [ bitfield ] ` struct into an actual bitfield definition .
&self
config
&Config