pub enum ImplItem {
Const(ImplItemConst),
Method(ImplItemMethod),
Type(ImplItemType),
Existential(ImplItemExistential),
Macro(ImplItemMacro),
Verbatim(ImplItemVerbatim),
}
Expand description
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.
Existential(ImplItemExistential)
An existential 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§
source§impl From<ImplItemConst> for ImplItem
impl From<ImplItemConst> for ImplItem
source§fn from(e: ImplItemConst) -> ImplItem
fn from(e: ImplItemConst) -> ImplItem
Converts to this type from the input type.
source§impl From<ImplItemExistential> for ImplItem
impl From<ImplItemExistential> for ImplItem
source§fn from(e: ImplItemExistential) -> ImplItem
fn from(e: ImplItemExistential) -> ImplItem
Converts to this type from the input type.
source§impl From<ImplItemMacro> for ImplItem
impl From<ImplItemMacro> for ImplItem
source§fn from(e: ImplItemMacro) -> ImplItem
fn from(e: ImplItemMacro) -> ImplItem
Converts to this type from the input type.
source§impl From<ImplItemMethod> for ImplItem
impl From<ImplItemMethod> for ImplItem
source§fn from(e: ImplItemMethod) -> ImplItem
fn from(e: ImplItemMethod) -> ImplItem
Converts to this type from the input type.
source§impl From<ImplItemType> for ImplItem
impl From<ImplItemType> for ImplItem
source§fn from(e: ImplItemType) -> ImplItem
fn from(e: ImplItemType) -> ImplItem
Converts to this type from the input type.
source§impl From<ImplItemVerbatim> for ImplItem
impl From<ImplItemVerbatim> for ImplItem
source§fn from(e: ImplItemVerbatim) -> ImplItem
fn from(e: ImplItemVerbatim) -> ImplItem
Converts to this type from the input type.