[−][src]Enum rustc_ap_rustc_ast::token::Nonterminal
For interpolation during macro expansion.
Variants
NtStmt(Stmt)
NtLifetime(Ident)
Stuff inside brackets for attributes
NtPath(Path)
NtVis(Visibility)
NtTT(TokenTree)
Implementations
impl Nonterminal
[src]
pub fn pretty_printing_compatibility_hack(&self) -> bool
[src]
This nonterminal looks like some specific enums from
proc-macro-hack
and procedural-masquerade
crates.
We need to maintain some special pretty-printing behavior for them due to incorrect
asserts in old versions of those crates and their wide use in the ecosystem.
See issue #73345 for more details.
FIXME(#73933): Remove this eventually.
pub fn ident_name_compatibility_hack(
&self,
orig_span: Span,
source_map: &SourceMap
) -> Option<(Ident, bool)>
[src]
&self,
orig_span: Span,
source_map: &SourceMap
) -> Option<(Ident, bool)>
Trait Implementations
impl Clone for Nonterminal
[src]
fn clone(&self) -> Nonterminal
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Nonterminal
[src]
impl<__D: Decoder> Decodable<__D> for Nonterminal
[src]
impl<__E: Encoder> Encodable<__E> for Nonterminal
[src]
impl<CTX> HashStable<CTX> for Nonterminal where
CTX: HashStableContext,
[src]
CTX: HashStableContext,
fn hash_stable(&self, _hcx: &mut CTX, _hasher: &mut StableHasher)
[src]
impl PartialEq<Nonterminal> for Nonterminal
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Nonterminal
impl !Send for Nonterminal
impl !Sync for Nonterminal
impl Unpin for Nonterminal
impl !UnwindSafe for Nonterminal
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,