Struct derive_builder_core::RawTokens
[−]
[src]
pub struct RawTokens<T: AsRef<str>>(pub T);
RawTokens can be directly appended to a quote::Tokens
instance without any parsing.
Methods
impl<T: AsRef<str>> RawTokens<T>
[src]
fn as_str(&self) -> &str
View the underlying data as string.
fn to_tokens(&self) -> Tokens
Write self
to a new instance of quote::Tokens
.
Trait Implementations
impl<T: PartialEq + AsRef<str>> PartialEq for RawTokens<T>
[src]
fn eq(&self, __arg_0: &RawTokens<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RawTokens<T>) -> bool
This method tests for !=
.