Struct windows_gen::TokenStream [−][src]
pub struct TokenStream { /* fields omitted */ }
A stream of tokens
Implementations
impl TokenStream
[src]
impl TokenStream
[src]pub fn new() -> Self
[src]
Create a new TokenStream
pub fn append(&mut self, ident: Ident)
[src]
Appends an identifier to the stream
note: a space will be inserted before the identifier
pub fn combine(&mut self, other: &TokenStream)
[src]
Appends another stream to the stream
note: a space will be inserted before the other stream
pub fn as_str(&self) -> &str
[src]
View the stream as a string
pub fn into_string(self) -> String
[src]
Convert the stream into a String
pub fn parse<T: FromStr>(self) -> Result<T, T::Err>
[src]
Parse the token stream as something
Mostly used with proc_macro2::TokenStream
or proc_macro::TokenStream
pub fn push(&mut self, c: char)
[src]
pub fn push_str(&mut self, str: &str)
[src]
Trait Implementations
impl Clone for TokenStream
[src]
impl Clone for TokenStream
[src]fn clone(&self) -> TokenStream
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl FromIterator<TokenStream> for TokenStream
[src]
impl FromIterator<TokenStream> for TokenStream
[src]fn from_iter<I: IntoIterator<Item = TokenStream>>(iter: I) -> Self
[src]
impl ToTokens for TokenStream
[src]
impl ToTokens for TokenStream
[src]fn to_tokens(&self, dst: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
fn to_token_stream(&self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for TokenStream
impl RefUnwindSafe for TokenStream
impl Send for TokenStream
impl Send for TokenStream
impl Sync for TokenStream
impl Sync for TokenStream
impl Unpin for TokenStream
impl Unpin for TokenStream
impl UnwindSafe for TokenStream
impl UnwindSafe for TokenStream