Enum syn::ImplItem [−][src]
pub enum ImplItem { Const(ImplItemConst), Method(ImplItemMethod), Type(ImplItemType), Macro(ImplItemMacro), Verbatim(ImplItemVerbatim), }
An item within an impl block.
This type is available if Syn is built with the "full"
feature.
Syntax tree enum
This type is a syntax tree enum.
Variants
Const(ImplItemConst)
An associated constant within an impl block.
This type is available if Syn is built with the "full"
feature.
Method(ImplItemMethod)
A method within an impl block.
This type is available if Syn is built with the "full"
feature.
Type(ImplItemType)
An associated type within an impl block.
This type is available if Syn is built with the "full"
feature.
Macro(ImplItemMacro)
A macro invocation within an impl block.
This type is available if Syn is built with the "full"
feature.
Verbatim(ImplItemVerbatim)
Tokens within an impl block not interpreted by Syn.
This type is available if Syn is built with the "full"
feature.
Trait Implementations
impl Synom for ImplItem
[src]
impl Synom for ImplItem
fn parse(i: Cursor) -> PResult<Self>
[src]
fn parse(i: Cursor) -> PResult<Self>
fn description() -> Option<&'static str>
[src]
fn description() -> Option<&'static str>
A short name of the type being parsed. Read more
impl Debug for ImplItem
[src]
impl Debug for ImplItem
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for ImplItem
[src]
impl Eq for ImplItem
impl PartialEq for ImplItem
[src]
impl PartialEq for ImplItem
fn eq(&self, other: &ImplItem) -> bool
[src]
fn eq(&self, other: &ImplItem) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ImplItem) -> bool
[src]
fn ne(&self, other: &ImplItem) -> bool
This method tests for !=
.
impl Hash for ImplItem
[src]
impl Hash for ImplItem
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for ImplItem
[src]
impl Clone for ImplItem
fn clone(&self) -> ImplItem
[src]
fn clone(&self) -> ImplItem
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl From<ImplItemConst> for ImplItem
[src]
impl From<ImplItemConst> for ImplItem
fn from(e: ImplItemConst) -> ImplItem
[src]
fn from(e: ImplItemConst) -> ImplItem
Performs the conversion.
impl From<ImplItemMethod> for ImplItem
[src]
impl From<ImplItemMethod> for ImplItem
fn from(e: ImplItemMethod) -> ImplItem
[src]
fn from(e: ImplItemMethod) -> ImplItem
Performs the conversion.
impl From<ImplItemType> for ImplItem
[src]
impl From<ImplItemType> for ImplItem
fn from(e: ImplItemType) -> ImplItem
[src]
fn from(e: ImplItemType) -> ImplItem
Performs the conversion.
impl From<ImplItemMacro> for ImplItem
[src]
impl From<ImplItemMacro> for ImplItem
fn from(e: ImplItemMacro) -> ImplItem
[src]
fn from(e: ImplItemMacro) -> ImplItem
Performs the conversion.
impl From<ImplItemVerbatim> for ImplItem
[src]
impl From<ImplItemVerbatim> for ImplItem
fn from(e: ImplItemVerbatim) -> ImplItem
[src]
fn from(e: ImplItemVerbatim) -> ImplItem
Performs the conversion.
impl ToTokens for ImplItem
[src]
impl ToTokens for ImplItem
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
Write self
to the given TokenStream
. Read more
fn into_token_stream(self) -> TokenStream
[src]
fn into_token_stream(self) -> TokenStream
Convert self
directly into a TokenStream
object. Read more