[−][src]Struct squote::TokenStream
A stream of tokens
Implementations
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
Trait Implementations
impl Clone for TokenStream
[src]
fn clone(&self) -> TokenStream
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TokenStream
[src]
impl Display 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]
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 Send for TokenStream
impl Sync for TokenStream
impl Unpin for TokenStream
impl UnwindSafe for TokenStream
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,