pub(super) struct HandleStore<S: Types> {
    FreeFunctions: OwnedStore<S::FreeFunctions>,
    TokenStream: OwnedStore<S::TokenStream>,
    SourceFile: OwnedStore<S::SourceFile>,
    Span: InternedStore<S::Span>,
}
🔬This is a nightly-only experimental API. (proc_macro_internals #27812)

Fields§

§FreeFunctions: OwnedStore<S::FreeFunctions>
🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
§TokenStream: OwnedStore<S::TokenStream>
🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
§SourceFile: OwnedStore<S::SourceFile>
🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
§Span: InternedStore<S::Span>
🔬This is a nightly-only experimental API. (proc_macro_internals #27812)

Implementations§

source§

impl<S: Types> HandleStore<S>

source

pub(super) fn new(handle_counters: &'static HandleCounters) -> Self

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

Trait Implementations§

source§

impl<'s, S: Types> Decode<'_, 's, HandleStore<MarkedTypes<S>>> for &'s Marked<S::FreeFunctions, FreeFunctions>

source§

fn decode(r: &mut &'_ [u8], s: &'s HandleStore<MarkedTypes<S>>) -> Self

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

impl<'s, S: Types> Decode<'_, 's, HandleStore<MarkedTypes<S>>> for &'s Marked<S::SourceFile, SourceFile>

source§

fn decode(r: &mut &'_ [u8], s: &'s HandleStore<MarkedTypes<S>>) -> Self

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

impl<'s, S: Types> Decode<'_, 's, HandleStore<MarkedTypes<S>>> for &'s Marked<S::TokenStream, TokenStream>

source§

fn decode(r: &mut &'_ [u8], s: &'s HandleStore<MarkedTypes<S>>) -> Self

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

impl<S: Types> DecodeMut<'_, '_, HandleStore<MarkedTypes<S>>> for Marked<S::FreeFunctions, FreeFunctions>

source§

fn decode(r: &mut &'_ [u8], s: &mut HandleStore<MarkedTypes<S>>) -> Self

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

impl<S: Types> DecodeMut<'_, '_, HandleStore<MarkedTypes<S>>> for Marked<S::SourceFile, SourceFile>

source§

fn decode(r: &mut &'_ [u8], s: &mut HandleStore<MarkedTypes<S>>) -> Self

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

impl<S: Types> DecodeMut<'_, '_, HandleStore<MarkedTypes<S>>> for Marked<S::Span, Span>

source§

fn decode(r: &mut &'_ [u8], s: &mut HandleStore<MarkedTypes<S>>) -> Self

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

impl<S: Server> DecodeMut<'_, '_, HandleStore<MarkedTypes<S>>> for Marked<S::Symbol, Symbol>

source§

fn decode(r: &mut &'_ [u8], s: &mut HandleStore<MarkedTypes<S>>) -> Self

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

impl<S: Types> DecodeMut<'_, '_, HandleStore<MarkedTypes<S>>> for Marked<S::TokenStream, TokenStream>

source§

fn decode(r: &mut &'_ [u8], s: &mut HandleStore<MarkedTypes<S>>) -> Self

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

impl<'s, S: Types> DecodeMut<'_, 's, HandleStore<MarkedTypes<S>>> for &'s mut Marked<S::FreeFunctions, FreeFunctions>

source§

fn decode(r: &mut &'_ [u8], s: &'s mut HandleStore<MarkedTypes<S>>) -> Self

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

impl<'s, S: Types> DecodeMut<'_, 's, HandleStore<MarkedTypes<S>>> for &'s mut Marked<S::SourceFile, SourceFile>

source§

fn decode(r: &mut &'_ [u8], s: &'s mut HandleStore<MarkedTypes<S>>) -> Self

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

impl<'s, S: Types> DecodeMut<'_, 's, HandleStore<MarkedTypes<S>>> for &'s mut Marked<S::TokenStream, TokenStream>

source§

fn decode(r: &mut &'_ [u8], s: &'s mut HandleStore<MarkedTypes<S>>) -> Self

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

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

source§

fn encode(self, w: &mut Buffer, s: &mut HandleStore<MarkedTypes<S>>)

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

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

source§

fn encode(self, w: &mut Buffer, s: &mut HandleStore<MarkedTypes<S>>)

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

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

source§

fn encode(self, w: &mut Buffer, s: &mut HandleStore<MarkedTypes<S>>)

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

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

source§

fn encode(self, w: &mut Buffer, s: &mut HandleStore<MarkedTypes<S>>)

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

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

source§

fn encode(self, w: &mut Buffer, s: &mut HandleStore<MarkedTypes<S>>)

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

Auto Trait Implementations§

§

impl<S> RefUnwindSafe for HandleStore<S>where <S as Types>::FreeFunctions: RefUnwindSafe, <S as Types>::SourceFile: RefUnwindSafe, <S as Types>::Span: RefUnwindSafe, <S as Types>::TokenStream: RefUnwindSafe,

§

impl<S> Send for HandleStore<S>where <S as Types>::FreeFunctions: Send, <S as Types>::SourceFile: Send, <S as Types>::Span: Send, <S as Types>::TokenStream: Send,

§

impl<S> Sync for HandleStore<S>where <S as Types>::FreeFunctions: Sync, <S as Types>::SourceFile: Sync, <S as Types>::Span: Sync, <S as Types>::TokenStream: Sync,

§

impl<S> Unpin for HandleStore<S>where <S as Types>::Span: Unpin,

§

impl<S> UnwindSafe for HandleStore<S>where <S as Types>::FreeFunctions: RefUnwindSafe, <S as Types>::SourceFile: RefUnwindSafe, <S as Types>::Span: UnwindSafe + RefUnwindSafe, <S as Types>::TokenStream: RefUnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.