Struct derive_builder_core::RawTokens
[−]
[src]
RawTokens
can be directly appended to a quote::Tokens
instance without
any parsing.
Methods
impl<T: AsRef<str>> RawTokens<T>
[src]
impl<T: AsRef<str>> RawTokens<T>
pub fn as_str(&self) -> &str
[src]
pub fn as_str(&self) -> &str
View the underlying data as string.
pub fn to_tokens(&self) -> Tokens
[src]
pub 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]
impl<T: PartialEq + AsRef<str>> PartialEq for RawTokens<T>
fn eq(&self, __arg_0: &RawTokens<T>) -> bool
[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
[src]
fn ne(&self, __arg_0: &RawTokens<T>) -> bool
This method tests for !=
.
impl<T: Debug + AsRef<str>> Debug for RawTokens<T>
[src]
impl<T: Debug + AsRef<str>> Debug for RawTokens<T>
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: AsRef<str>> ToTokens for RawTokens<T>
[src]
impl<T: AsRef<str>> ToTokens for RawTokens<T>