Trait proc_macro::bridge::rpc::Encode

source ·
pub(super) trait Encode<S>: Sized {
    // Required method
    fn encode(self, w: &mut Buffer, s: &mut S);
}
🔬This is a nightly-only experimental API. (proc_macro_internals #27812)

Required Methods§

source

fn encode(self, w: &mut Buffer, s: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)

Implementations on Foreign Types§

source§

impl<S, T: Encode<S>, E: Encode<S>> Encode<S> for Result<T, E>

source§

fn encode(self, w: &mut Buffer, s: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S, T: Encode<S>> Encode<S> for Vec<T>

source§

fn encode(self, w: &mut Buffer, s: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S> Encode<S> for &[u8]

source§

fn encode(self, w: &mut Buffer, s: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S> Encode<S> for ()

source§

fn encode(self, _: &mut Buffer, _: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S> Encode<S> for String

source§

fn encode(self, w: &mut Buffer, s: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S, T: Encode<S>> Encode<S> for Bound<T>

source§

fn encode(self, w: &mut Buffer, s: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S> Encode<S> for usize

source§

fn encode(self, w: &mut Buffer, _: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S> Encode<S> for bool

source§

fn encode(self, w: &mut Buffer, s: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S, T: Encode<S>> Encode<S> for Range<T>

source§

fn encode(self, w: &mut Buffer, s: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S, T: Encode<S>> Encode<S> for Option<T>

source§

fn encode(self, w: &mut Buffer, s: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S, A: Encode<S>, B: Encode<S>> Encode<S> for (A, B)

source§

fn encode(self, w: &mut Buffer, s: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S> Encode<S> for u8

source§

fn encode(self, w: &mut Buffer, _: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S> Encode<S> for char

source§

fn encode(self, w: &mut Buffer, s: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S> Encode<S> for &str

source§

fn encode(self, w: &mut Buffer, s: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S> Encode<S> for u32

source§

fn encode(self, w: &mut Buffer, _: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
source§

impl<S> Encode<S> for NonZeroU32

source§

fn encode(self, w: &mut Buffer, s: &mut S)

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)

Implementors§

source§

impl<S> Encode<S> for &proc_macro::bridge::client::FreeFunctions

source§

impl<S> Encode<S> for &proc_macro::bridge::client::SourceFile

source§

impl<S> Encode<S> for &proc_macro::bridge::client::TokenStream

source§

impl<S> Encode<S> for &mut proc_macro::bridge::client::FreeFunctions

source§

impl<S> Encode<S> for &mut proc_macro::bridge::client::SourceFile

source§

impl<S> Encode<S> for &mut proc_macro::bridge::client::TokenStream

source§

impl<S> Encode<S> for Level

source§

impl<S> Encode<S> for Delimiter

source§

impl<S> Encode<S> for Spacing

source§

impl<S> Encode<S> for proc_macro::bridge::api_tags::FreeFunctions

source§

impl<S> Encode<S> for Method

source§

impl<S> Encode<S> for proc_macro::bridge::api_tags::SourceFile

source§

impl<S> Encode<S> for proc_macro::bridge::api_tags::Span

source§

impl<S> Encode<S> for proc_macro::bridge::api_tags::Symbol

source§

impl<S> Encode<S> for proc_macro::bridge::api_tags::TokenStream

source§

impl<S> Encode<S> for LitKind

source§

impl<S> Encode<S> for PanicMessage

source§

impl<S> Encode<S> for proc_macro::bridge::client::FreeFunctions

source§

impl<S> Encode<S> for proc_macro::bridge::client::SourceFile

source§

impl<S> Encode<S> for proc_macro::bridge::client::Span

source§

impl<S> Encode<S> for proc_macro::bridge::client::TokenStream

source§

impl<S> Encode<S> for proc_macro::bridge::symbol::Symbol

source§

impl<S, Sp: Encode<S>, Sy: Encode<S>> Encode<S> for Literal<Sp, Sy>

source§

impl<S, Span: Encode<S>> Encode<S> for DelimSpan<Span>

source§

impl<S, Span: Encode<S>> Encode<S> for Diagnostic<Span>

source§

impl<S, Span: Encode<S>> Encode<S> for ExpnGlobals<Span>

source§

impl<S, Span: Encode<S>> Encode<S> for Punct<Span>

source§

impl<S, Span: Encode<S>, Symbol: Encode<S>> Encode<S> for Ident<Span, Symbol>

source§

impl<S, TokenStream: Encode<S>, Span: Encode<S>> Encode<S> for Group<TokenStream, Span>

source§

impl<S, TokenStream: Encode<S>, Span: Encode<S>, Symbol: Encode<S>> Encode<S> for TokenTree<TokenStream, Span, Symbol>

source§

impl<S: Server> Encode<HandleStore<MarkedTypes<S>>> for Marked<S::Symbol, Symbol>

source§

impl<S: Types> Encode<HandleStore<MarkedTypes<S>>> for Marked<S::FreeFunctions, FreeFunctions>

source§

impl<S: Types> Encode<HandleStore<MarkedTypes<S>>> for Marked<S::SourceFile, SourceFile>

source§

impl<S: Types> Encode<HandleStore<MarkedTypes<S>>> for Marked<S::Span, Span>

source§

impl<S: Types> Encode<HandleStore<MarkedTypes<S>>> for Marked<S::TokenStream, TokenStream>