/// Returns an `Initializer` according to the options.
///
/// # Panics
///
/// if `default_expression` can not be parsed as `Block`.
Returns an `Initializer` according to the options.
Returns an ` Initializer ` according to the options .
pub fn as_initializer(&'a self) -> Initializer<'a> {
        Initializer {
            field_enabled: self.field_enabled(),
            field_ident: self.field_ident(),
            builder_pattern: self.pattern(),
            default_value: self.field.default.as_ref(),
            use_default_struct: self.use_parent_default(),
            conversion: self.conversion(),
            custom_error_type_span: self
                .parent
                .build_fn
                .error
                .as_ref()
                .map(|err_ty| err_ty.span()),
        }
    }
pub fn as_initializer ( & ' a self ) -> Initializer < ' a > { Initializer { field_enabled : self . field_enabled ( ) , field_ident : self . field_ident ( ) , builder_pattern : self . pattern ( ) , default_value : self . field . default . as_ref ( ) , use_default_struct : self . use_parent_default ( ) , conversion : self . conversion ( ) , custom_error_type_span : self . parent . build_fn . error . as_ref ( ) . map ( | err_ty | err_ty . span ( ) ) , } }
Returns an `Initializer` according to the options.
Returns an ` Initializer ` according to the options .
&'a self
panics
if `default_expression` can not be parsed as `Block`.
if ` default_expression ` can not be parsed as ` Block ` .