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 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