pub enum PathOrLit {
Path(Path),
Lit(Lit),
}
Expand description
Either a path or a literal.
Variants§
Trait Implementations§
source§impl PartialEq<PathOrLit> for PathOrLit
impl PartialEq<PathOrLit> for PathOrLit
source§impl ToTokens for PathOrLit
impl ToTokens for PathOrLit
source§fn to_tokens(&self, tokens: &mut TokenStream2)
fn to_tokens(&self, tokens: &mut TokenStream2)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for PathOrLit
impl StructuralEq for PathOrLit
impl StructuralPartialEq for PathOrLit
Auto Trait Implementations§
impl RefUnwindSafe for PathOrLit
impl !Send for PathOrLit
impl !Sync for PathOrLit
impl Unpin for PathOrLit
impl UnwindSafe for PathOrLit
Blanket Implementations§
source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.