pub fn as_build_method<'a>(&'a self) -> BuildMethod<'a> {
        let (_impl_generics, ty_generics, _where_clause) = self.generics.split_for_impl();
        BuildMethod {
            enabled: self.build_fn_enabled,
            ident: &self.build_fn_name,
            visibility: &self.builder_visibility,
            pattern: self.builder_pattern,
            target_ty: &self.build_target_ident,
            target_ty_generics: Some(ty_generics),
            initializers: Vec::with_capacity(self.struct_size_hint),
            doc_comment: None,
            bindings: self.bindings,
            default_struct: self.default_expression
                .as_ref()
                .map(|x| { x.parse_block(self.bindings.no_std) }),
            validate_fn: self.validate_fn.as_ref(),
        }
    }
/// Returns a `BuildMethod` according to the options.
Returns a `BuildMethod` according to the options.
Returns a ` BuildMethod ` according to the options .
pub fn as_build_method<'a>(&'a self) -> BuildMethod<'a> {
        let (_impl_generics, ty_generics, _where_clause) = self.generics.split_for_impl();
        BuildMethod {
            enabled: self.build_fn_enabled,
            ident: &self.build_fn_name,
            visibility: &self.builder_visibility,
            pattern: self.builder_pattern,
            target_ty: &self.build_target_ident,
            target_ty_generics: Some(ty_generics),
            initializers: Vec::with_capacity(self.struct_size_hint),
            doc_comment: None,
            bindings: self.bindings,
            default_struct: self.default_expression
                .as_ref()
                .map(|x| { x.parse_block(self.bindings.no_std) }),
            validate_fn: self.validate_fn.as_ref(),
        }
    }
pub fn as_build_method < ' a > ( & ' a self ) -> BuildMethod < ' a > { let ( _impl_generics , ty_generics , _where_clause ) = self . generics . split_for_impl ( ) ; BuildMethod { enabled : self . build_fn_enabled , ident : & self . build_fn_name , visibility : & self . builder_visibility , pattern : self . builder_pattern , target_ty : & self . build_target_ident , target_ty_generics : Some ( ty_generics ) , initializers : Vec :: with_capacity ( self . struct_size_hint ) , doc_comment : None , bindings : self . bindings , default_struct : self . default_expression . as_ref ( ) . map ( | x | { x . parse_block ( self . bindings . no_std ) } ) , validate_fn : self . validate_fn . as_ref ( ) , } }
Returns a `BuildMethod` according to the options.
Returns a ` BuildMethod ` according to the options .
&'a self
&'a self