Skip to main content

## ExpectNameValue

# Trait ExpectNameValue

Source

    pub(crate) trait ExpectNameValue {
        type Output<'a>
           where Self: 'a;

        // Required method
        fn expect_name_value<'a, 'f, 'sess>(
            &'a self,
            cx: &mut AcceptContext<'f, 'sess>,
            span: Span,
            name: Option<Symbol>,
        ) -> Option<Self::Output<'a>>;
    }

## Required Associated Types§

Source

#### type Output<'a> where Self: 'a

## Required Methods§

Source

#### fn expect_name_value<'a, 'f, 'sess>( &'a self, cx: &mut AcceptContext<'f, 'sess>, span: Span, name: Option<Symbol>, ) -> Option<Self::Output<'a>>

## Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

## Implementors§

Source§

### impl ExpectNameValue for ArgParser

Source§

#### type Output<'a> = &'a NameValueParser

Source§

### impl ExpectNameValue for MetaItemOrLitParser

Source§

#### type Output<'a> = (Ident, &'a NameValueParser)

Source§

### impl ExpectNameValue for MetaItemParser

Source§

#### type Output<'a> = (Ident, &'a NameValueParser)