pub fn literal(&self) -> Option<&Lit> {
        match self.node {
            NestedMetaItemKind::Literal(ref lit) => Some(&lit),
            _ => None
        }
    }
/// Returns the Lit if self is a NestedMetaItemKind::Literal.
Returns the Lit if self is a NestedMetaItemKind::Literal.
Returns the Lit if self is a NestedMetaItemKind :: Literal .
pub fn literal(&self) -> Option<&Lit> {
        match self.node {
            NestedMetaItemKind::Literal(ref lit) => Some(&lit),
            _ => None
        }
    }
pub fn literal ( & self ) -> Option < & Lit > { match self . node { NestedMetaItemKind :: Literal ( ref lit ) => Some ( & lit ) , _ => None } }
Returns the Lit if self is a NestedMetaItemKind::Literal.
Returns the Lit if self is a NestedMetaItemKind :: Literal .
&self
&self