Struct proc_macro::bridge::client::TokenStream
source · pub(crate) struct TokenStream {
handle: NonZeroU32,
_marker: PhantomData<*mut ()>,
}
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Fields§
§handle: NonZeroU32
🔬This is a nightly-only experimental API. (
§proc_macro_internals
#27812)_marker: PhantomData<*mut ()>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Implementations§
source§impl TokenStream
impl TokenStream
pub(crate) fn drop(self: TokenStream)
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn clone(self: &TokenStream) -> TokenStream
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn is_empty(self: &TokenStream) -> bool
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn expand_expr(self: &TokenStream) -> Result<TokenStream, ()>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn from_str(src: &str) -> TokenStream
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn to_string(self: &TokenStream) -> String
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn from_token_tree( tree: TokenTree<TokenStream, Span, Symbol> ) -> TokenStream
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn concat_trees( base: Option<TokenStream>, trees: Vec<TokenTree<TokenStream, Span, Symbol>> ) -> TokenStream
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn concat_streams( base: Option<TokenStream>, streams: Vec<TokenStream> ) -> TokenStream
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub(crate) fn into_trees( self: TokenStream ) -> Vec<TokenTree<TokenStream, Span, Symbol>>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Trait Implementations§
source§impl Clone for TokenStream
impl Clone for TokenStream
source§impl<S> DecodeMut<'_, '_, S> for TokenStream
impl<S> DecodeMut<'_, '_, S> for TokenStream
source§impl Drop for TokenStream
impl Drop for TokenStream
source§impl<S> Encode<S> for &TokenStream
impl<S> Encode<S> for &TokenStream
source§impl<S> Encode<S> for &mut TokenStream
impl<S> Encode<S> for &mut TokenStream
Auto Trait Implementations§
impl RefUnwindSafe for TokenStream
impl !Send for TokenStream
impl !Sync for TokenStream
impl Unpin for TokenStream
impl UnwindSafe for TokenStream
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