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", so this trait is not object safe.

Implementors§