pub fn as_initializer<'a>(&'a self) -> Initializer<'a> {
        Initializer {
            setter_enabled: self.setter_enabled,
            field_ident: &self.field_ident,
            builder_pattern: self.builder_pattern,
            default_value: self.default_expression
                .as_ref()
                .map(|x| { x.parse_block(self.bindings.no_std) }),
            use_default_struct: self.use_default_struct,
            bindings: self.bindings,
        }
    }
/// 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>(&'a self) -> Initializer<'a> {
        Initializer {
            setter_enabled: self.setter_enabled,
            field_ident: &self.field_ident,
            builder_pattern: self.builder_pattern,
            default_value: self.default_expression
                .as_ref()
                .map(|x| { x.parse_block(self.bindings.no_std) }),
            use_default_struct: self.use_default_struct,
            bindings: self.bindings,
        }
    }
pub fn as_initializer < ' a > ( & ' a self ) -> Initializer < ' a > { Initializer { setter_enabled : self . setter_enabled , field_ident : & self . field_ident , builder_pattern : self . builder_pattern , default_value : self . default_expression . as_ref ( ) . map ( | x | { x . parse_block ( self . bindings . no_std ) } ) , use_default_struct : self . use_default_struct , bindings : self . bindings , } }
Returns an `Initializer` according to the options.
Returns an ` Initializer ` according to the options .
&'a self
&'a self
panics
if `default_expression` can not be parsed as `Block`.
if ` default_expression ` can not be parsed as ` Block ` .