pub fn name_value_literal(&self) -> Option<(Name, &Lit)> {
        self.meta_item().and_then(
            |meta_item| meta_item.meta_item_list().and_then(
                |meta_item_list| {
                    if meta_item_list.len() == 1 {
                        if let Some(ident) = meta_item.ident() {
                            if let Some(lit) = meta_item_list[0].literal() {
                                return Some((ident.name, lit));
                            }
                        }
                    }
                    None
                }))
    }
/// Returns a name and single literal value tuple of the `MetaItem`.
Returns a name and single literal value tuple of the `MetaItem`.
Returns a name and single literal value tuple of the ` MetaItem ` .
pub fn name_value_literal(&self) -> Option<(Name, &Lit)> {
        self.meta_item().and_then(
            |meta_item| meta_item.meta_item_list().and_then(
                |meta_item_list| {
                    if meta_item_list.len() == 1 {
                        if let Some(ident) = meta_item.ident() {
                            if let Some(lit) = meta_item_list[0].literal() {
                                return Some((ident.name, lit));
                            }
                        }
                    }
                    None
                }))
    }
pub fn name_value_literal ( & self ) -> Option < ( Name , & Lit ) > { self . meta_item ( ) . and_then ( | meta_item | meta_item . meta_item_list ( ) . and_then ( | meta_item_list | { if meta_item_list . len ( ) == 1 { if let Some ( ident ) = meta_item . ident ( ) { if let Some ( lit ) = meta_item_list [ 0 ] . literal ( ) { return Some ( ( ident . name , lit ) ) ; } } } None } ) ) }
Returns a name and single literal value tuple of the `MetaItem`.
Returns a name and single literal value tuple of the ` MetaItem ` .
&self