[−][src]Enum syn::ImplItem
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
impl Parse for ImplItem
[src]
fn parse(input: ParseStream) -> Result<Self>
[src]
impl Eq for ImplItem
[src]
impl Clone for ImplItem
[src]
fn clone(&self) -> ImplItem
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<ImplItem> for ImplItem
[src]
impl From<ImplItemConst> for ImplItem
[src]
fn from(e: ImplItemConst) -> ImplItem
[src]
impl From<ImplItemMethod> for ImplItem
[src]
fn from(e: ImplItemMethod) -> ImplItem
[src]
impl From<ImplItemType> for ImplItem
[src]
fn from(e: ImplItemType) -> ImplItem
[src]
impl From<ImplItemExistential> for ImplItem
[src]
fn from(e: ImplItemExistential) -> ImplItem
[src]
impl From<ImplItemMacro> for ImplItem
[src]
fn from(e: ImplItemMacro) -> ImplItem
[src]
impl From<ImplItemVerbatim> for ImplItem
[src]
fn from(e: ImplItemVerbatim) -> ImplItem
[src]
impl Hash for ImplItem
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
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 Debug for ImplItem
[src]
impl ToTokens for ImplItem
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn into_token_stream(self) -> TokenStream
[src]
Convert self
directly into a TokenStream
object. Read more
Auto Trait Implementations
impl Unpin for ImplItem
impl !Sync for ImplItem
impl !Send for ImplItem
impl UnwindSafe for ImplItem
impl !RefUnwindSafe for ImplItem
Blanket Implementations
impl<T> Spanned for T where
T: ToTokens,
[src]
T: ToTokens,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,