Struct proc_macro::bridge::Literal
source · pub struct Literal<Span, Symbol> {
pub kind: LitKind,
pub symbol: Symbol,
pub suffix: Option<Symbol>,
pub span: Span,
}
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Fields§
§kind: LitKind
🔬This is a nightly-only experimental API. (
§proc_macro_internals
#27812)symbol: Symbol
🔬This is a nightly-only experimental API. (
§proc_macro_internals
#27812)suffix: Option<Symbol>
🔬This is a nightly-only experimental API. (
§proc_macro_internals
#27812)span: Span
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Trait Implementations§
source§impl<'a, S, Sp: for<'s> DecodeMut<'a, 's, S>, Sy: for<'s> DecodeMut<'a, 's, S>> DecodeMut<'a, '_, S> for Literal<Sp, Sy>
impl<'a, S, Sp: for<'s> DecodeMut<'a, 's, S>, Sy: for<'s> DecodeMut<'a, 's, S>> DecodeMut<'a, '_, S> for Literal<Sp, Sy>
source§impl<Span: Eq, Symbol: Eq> Eq for Literal<Span, Symbol>
impl<Span: Eq, Symbol: Eq> Eq for Literal<Span, Symbol>
fn assert_receiver_is_total_eq(&self)
source§impl<Span: PartialEq, Symbol: PartialEq> PartialEq<Literal<Span, Symbol>> for Literal<Span, Symbol>
impl<Span: PartialEq, Symbol: PartialEq> PartialEq<Literal<Span, Symbol>> for Literal<Span, Symbol>
impl<Span, Symbol> StructuralEq for Literal<Span, Symbol>
impl<Span, Symbol> StructuralPartialEq for Literal<Span, Symbol>
Auto Trait Implementations§
impl<Span, Symbol> RefUnwindSafe for Literal<Span, Symbol>where Span: RefUnwindSafe, Symbol: RefUnwindSafe,
impl<Span, Symbol> Send for Literal<Span, Symbol>where Span: Send, Symbol: Send,
impl<Span, Symbol> Sync for Literal<Span, Symbol>where Span: Sync, Symbol: Sync,
impl<Span, Symbol> Unpin for Literal<Span, Symbol>where Span: Unpin, Symbol: Unpin,
impl<Span, Symbol> UnwindSafe for Literal<Span, Symbol>where Span: UnwindSafe, Symbol: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more