rustc_expand::proc_macro_server

Trait FromInternal

Source
trait FromInternal<T> {
    // Required method
    fn from_internal(x: T) -> Self;
}

Required Methods§

Source

fn from_internal(x: T) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromInternal<(TokenStream, &mut Rustc<'_, '_>)> for Vec<TokenTree<TokenStream, Span, Symbol>>

Source§

fn from_internal((stream, rustc): (TokenStream, &mut Rustc<'_, '_>)) -> Self

Source§

impl FromInternal<Delimiter> for Delimiter

Source§

impl FromInternal<LitKind> for LitKind

Source§

fn from_internal(kind: LitKind) -> Self

Implementors§