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 Debug for ImplItem
[src]
impl Eq for ImplItem
[src]
impl PartialEq for ImplItem
[src]
fn eq(&self, __arg_0: &ImplItem) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ImplItem) -> bool
[src]
This method tests for !=
.
impl Hash for ImplItem
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
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]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for ImplItem
[src]
fn clone(&self) -> ImplItem
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<ImplItemConst> for ImplItem
[src]
fn from(e: ImplItemConst) -> ImplItem
[src]
Performs the conversion.
impl From<ImplItemMethod> for ImplItem
[src]
fn from(e: ImplItemMethod) -> ImplItem
[src]
Performs the conversion.
impl From<ImplItemType> for ImplItem
[src]
fn from(e: ImplItemType) -> ImplItem
[src]
Performs the conversion.
impl From<ImplItemMacro> for ImplItem
[src]
fn from(e: ImplItemMacro) -> ImplItem
[src]
Performs the conversion.
impl From<ImplItemVerbatim> for ImplItem
[src]
fn from(e: ImplItemVerbatim) -> ImplItem
[src]
Performs the conversion.